1.0.56 • Published 10 months ago

spec-tailwind-ui v1.0.56

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

10 months ago

1.0.55

10 months ago

1.0.54

10 months ago

1.0.53

10 months ago

1.0.52

10 months ago

1.0.56

10 months ago

1.0.50

12 months ago

1.0.49

12 months ago

1.0.48

12 months ago

1.0.47

12 months ago

1.0.46

12 months ago

1.0.45

12 months ago

1.0.44

12 months ago

1.0.43

12 months ago

1.0.42

12 months ago

1.0.41

12 months ago

1.0.40

12 months ago

1.0.39

12 months ago

1.0.38

12 months ago

1.0.37

12 months ago

1.0.36

12 months ago

1.0.35

12 months ago

1.0.34

12 months ago

1.0.33

12 months ago

1.0.32

12 months ago

1.0.31

12 months ago

1.0.30

12 months ago

1.0.29

12 months ago

1.0.28

12 months ago

1.0.27

12 months ago

1.0.26

12 months ago

1.0.25

12 months ago

1.0.24

12 months ago

1.0.23

12 months ago

1.0.22

12 months ago

1.0.21

12 months ago

1.0.20

12 months ago

1.0.19

12 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