@kadoui/css
Version:
Kadoui TailwindCSS styles
77 lines (66 loc) • 1.43 kB
Markdown
# Add follow codes to your main CSS file
```css
@import "tailwindcss";
@import "@kadoui/css";
@theme {
--color-*: initial;
--color-background-thin: #ffffff;
--color-background: #fafafa;
--color-background-thick: #efefef;
--color-foreground: #151515;
--color-primary: #9070ff;
--color-success: #108a00;
--color-warning: #f3bd1b;
--color-danger: #d60000;
--color-palette: var(--color-primary);
--color-brush: var(--color-background);
--radius-kado: 0.375rem;
}
[data-theme="dark"] {
--color-background-thin: #202020;
--color-background: #151515;
--color-background-thick: #101010;
--color-foreground: #fafafa;
}
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
```
We also recommend that you develop the ui of your projects with this system:
```
Spacing:
lvl-1: 0.5
lvl-2: 1.5
lvl-3: 3
lvl-4: 6
lvl-5: 9
Color shades:
lvl-1: 100%
lvl-2: 90%
lvl-3: 50%
lvl-4: 20%
lvl-5: 10%
Z-index layers:
lvl-1: 10
lvl-2: 20
lvl-3: 30
lvl-4: 40
lvl-5: 50
Border radius:
lvl-1: rounded
lvl-2: rounded-md
lvl-3: rounded-kado
lvl-4: rounded-xl
lvl-5: rounded-2xl
Heading:
lvl-1: text-base
lvl-2: text-lg
lvl-3: text-xl
lvl-4: text-2xl
lvl-5: text-3xl
Paragraph:
lvl-1: text-xs
lvl-2: text-sm
lvl-3: text-base
lvl-4: text-lg
lvl-5: text-xl
```