crude-ui v1.0.3
Crude UI is an implementation of the Crude Design System by Shaunak Anil Bhanarkar that features foundational components with a neubrutalist aesthetic. It uses styled-components to implement a theme system, grid system, responsive typography, text input with error handling, and other responsive components.
- Crude Design System - Neubrutalism design system this UI Kit is based on, by Shaunak Anil Bhanarkar.
- NPM page
Installation
npm i -D crude-ui
Setup and Theming
Crude UI comes with a wrapper for styled-component's ThemeProvider that passes a default theme based on the Crude Design System. Crude components need to be nested in a ThemeProvider component to be styled.
import { ThemeProvider } from "crude-ui";
function App() {
return <ThemeProvider>{children}</ThemeProvider>;
}
Design tokens can be accessed by importing the default theme
import { CrudeTheme } from "crude-ui";
The theme can also be accessed with styled-components
import { styled } from "styled-components";
const ErrorMessage = styled.p`
color: ${({ theme: { colors } }) => colors.error[0]};
`;
Font
The default font for CrudeUI is Zilla Slab.
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;600;700&display=swap"
rel="stylesheet"
/>
Using Components
import { Heading } from "crude-ui";
function App() {
return <Heading as="h1" variant={2} text="Hello World!" />;
}
Documentation
Wip storbook
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago