1.0.56 • Published 9 months ago
spec-tailwind-ui v1.0.56
Tailwind.config.js
/** @type {import('tailwindcss').Config} */
import {tailwindColors} from 'spec-tailwind-ui'
export default {
darkMode: 'class',
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
"./src/**/*Class.{js,jsx,ts,tsx}",
"./src/**/*Classes.{js,jsx,ts,tsx}",
"./node_modules/spec-tailwind-ui/**/*.{js,jsx,ts,tsx}",
"./node_modules/spec-tailwind-ui/**/*Class.{js,jsx,ts,tsx}",
"./node_modules/spec-tailwind-ui/**/*Classes.{js,jsx,ts,tsx}"
],
theme: {
colors: tailwindColors,
extend: {},
},
plugins: [],
}
index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
}
}
html.dark {
color-scheme: dark;
}
html {
height: 100vh;
}
html,
body,
#root {
height: 100%;
overflow: hidden;
@apply bg-white dark:bg-gray-900
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
Example
import { ThemeProvider, COLOR } from 'spec-tailwind-ui';
function App() {
const theme = {
primary: COLOR.RED, secondary: COLOR.BLUE, tertiary: COLOR.GREEN, danger: COLOR.RED, warn: COLOR.AMBER, success: COLOR.GREEN, bg: COLOR.NEUTRAL
}
return (
<ThemeProvider theme={theme}>
<div>
Hello
</div>
</ThemeProvider>
)
}
export default App
1.0.51
9 months ago
1.0.55
9 months ago
1.0.54
9 months ago
1.0.53
9 months ago
1.0.52
9 months ago
1.0.56
9 months ago
1.0.50
11 months ago
1.0.49
11 months ago
1.0.48
11 months ago
1.0.47
11 months ago
1.0.46
11 months ago
1.0.45
11 months ago
1.0.44
11 months ago
1.0.43
11 months ago
1.0.42
11 months ago
1.0.41
11 months ago
1.0.40
11 months ago
1.0.39
11 months ago
1.0.38
11 months ago
1.0.37
11 months ago
1.0.36
11 months ago
1.0.35
11 months ago
1.0.34
11 months ago
1.0.33
11 months ago
1.0.32
11 months ago
1.0.31
11 months ago
1.0.30
11 months ago
1.0.29
11 months ago
1.0.28
11 months ago
1.0.27
11 months ago
1.0.26
11 months ago
1.0.25
11 months ago
1.0.24
11 months ago
1.0.23
11 months ago
1.0.22
11 months ago
1.0.21
11 months ago
1.0.20
11 months ago
1.0.19
11 months ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago