
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@orfium/ictinus
Advanced tools
A React UI kit library with custom components that fits [Orfium](https://github.com/orfium) products internally.
A React UI kit library with custom components that fits Orfium products internally.
$ npm install @orfium/ictinus
$ yarn add @orfium/ictinus
ThemeProvider
component like belowimport { ThemeProvider } from '@orfium/ictinus';
const App = () => (
<ThemeProvider>
<Router>...</Router>
</ThemeProvider>
);
import { Select, Button } from '@orfium/ictinus';
Now you can can have access to the library's theme config by using the hook provided
import { useTheme } from '@orfium/ictinus';
const theme = useTheme();
You can apply your own branded colours for each product at the definition of the ThemeProvider. This way you can have access everywhere.
<ThemeProvider
theme={{
palette: {
branded1: theme.colors.orange,
branded2: theme.colors.ciel,
},
}}
>
...
</ThemeProvider>
If you are already using emotion and you have defined a different provider you still have to define Ictinus ThemeProvider as well. You must put the theme config example at the top of the providers and yours afterwards.
Then you must use the below function to create a new theme config for the second provider
export const defaultTheme = (ancestorTheme: IctinusTheme) => ({
...ancestorTheme,
...theme,
});
The final outcome will look like this.
<IctinusThemeProvider
theme={{
palette: {
branded1: theme.colors.orange,
branded2: theme.colors.ciel,
},
}}
>
<ThemeProvider theme={defaultTheme}>
....
</ThemeProvider>
</IctinusThemeProvider>
FAQs
An internal UI kit library that is opinionated. Primary focus is to solve UI duplications and provide a unified and cross product UX, UI and accessibility.
The npm package @orfium/ictinus receives a total of 71 weekly downloads. As such, @orfium/ictinus popularity was classified as not popular.
We found that @orfium/ictinus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.