@brainfish-ai/components 0.0.0-alpha.test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +8 -0
- package/.vscode /extensions.json +3 -0
- package/.vscode /settings.json +4 -0
- package/LICENSE +21 -0
- package/README.md +121 -0
- package/components.json +16 -0
- package/dist/esm/index.css +4 -0
- package/dist/esm/index.css.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.d.ts +522 -0
- package/package.json +141 -0
- package/stats.html +4949 -0
- package/tailwind.config.js +139 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
const { BrainfishColors, customColor } = require('./src/colors');
|
|
2
|
+
const { neutral, zinc } = require('tailwindcss/colors')
|
|
3
|
+
const plugin = require('tailwindcss/plugin');
|
|
4
|
+
const { fontFamily } = require('tailwindcss/defaultTheme');
|
|
5
|
+
const { blue, dark, green, orange, pink, primary, purple, red, yellow } = BrainfishColors;
|
|
6
|
+
|
|
7
|
+
/** @type {import('tailwindcss').Config} */
|
|
8
|
+
module.exports = {
|
|
9
|
+
darkMode: ["class"],
|
|
10
|
+
content: [
|
|
11
|
+
"./index.html",
|
|
12
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
13
|
+
],
|
|
14
|
+
theme: {
|
|
15
|
+
container: {
|
|
16
|
+
center: true,
|
|
17
|
+
padding: "2rem",
|
|
18
|
+
screens: {
|
|
19
|
+
"2xl": "1400px",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
extend: {
|
|
23
|
+
fontFamily: {
|
|
24
|
+
...fontFamily,
|
|
25
|
+
sans: ['var(--bfc-font-family)', 'system-ui', 'sans-serif'],
|
|
26
|
+
},
|
|
27
|
+
fontWeight: {
|
|
28
|
+
bold: '700',
|
|
29
|
+
normal: '500',
|
|
30
|
+
},
|
|
31
|
+
colors: {
|
|
32
|
+
transparent: 'transparent',
|
|
33
|
+
primary,
|
|
34
|
+
base: {
|
|
35
|
+
orange: orange[400],
|
|
36
|
+
yellow: yellow[400],
|
|
37
|
+
primary: primary[400],
|
|
38
|
+
green: green[400],
|
|
39
|
+
blue: blue[500],
|
|
40
|
+
purple: purple[500],
|
|
41
|
+
pink: pink[400],
|
|
42
|
+
red: red[500],
|
|
43
|
+
orangeLight: orange[100],
|
|
44
|
+
yellowLight: yellow[100],
|
|
45
|
+
primaryLight: primary[100],
|
|
46
|
+
greenLight: green[100],
|
|
47
|
+
blueLight: blue[100],
|
|
48
|
+
purpleLight: purple[100],
|
|
49
|
+
pinkLight: pink[100],
|
|
50
|
+
redLight: red[100],
|
|
51
|
+
},
|
|
52
|
+
dark,
|
|
53
|
+
orange,
|
|
54
|
+
yellow,
|
|
55
|
+
green,
|
|
56
|
+
blue,
|
|
57
|
+
purple,
|
|
58
|
+
pink,
|
|
59
|
+
red,
|
|
60
|
+
|
|
61
|
+
border: customColor('--bfc-border', dark[900]),
|
|
62
|
+
input: customColor('--bfc-input', dark[200]),
|
|
63
|
+
ring: customColor('--bfc-border', dark[900]),
|
|
64
|
+
background: customColor('--bfc-background', dark[200]),
|
|
65
|
+
foreground: customColor('--bfc-foreground', dark.DEFAULT),
|
|
66
|
+
feedback: {
|
|
67
|
+
positive: customColor('--bfc-feedback-positive', green[500]),
|
|
68
|
+
negative: customColor('--bfc-feedback-negative', red[500]),
|
|
69
|
+
},
|
|
70
|
+
link: customColor('--bfc-link', blue[500]),
|
|
71
|
+
surface: {
|
|
72
|
+
DEFAULT: customColor('--bfc-surface', neutral[800]),
|
|
73
|
+
border: customColor('--bfc-surface-border', zinc[800]),
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
secondary: {
|
|
77
|
+
DEFAULT: customColor('--bfc-secondary', 'transparent'),
|
|
78
|
+
foreground: customColor('--bfc-secondary-foreground', 'transparent'),
|
|
79
|
+
},
|
|
80
|
+
destructive: {
|
|
81
|
+
DEFAULT: customColor('--bfc-destructive', 'transparent'),
|
|
82
|
+
foreground: customColor('--bfc-destructive-foreground', 'transparent'),
|
|
83
|
+
},
|
|
84
|
+
muted: {
|
|
85
|
+
DEFAULT: customColor('--bfc-muted', 'transparent'),
|
|
86
|
+
foreground: customColor('--bfc-muted-foreground', 'transparent'),
|
|
87
|
+
},
|
|
88
|
+
accent: {
|
|
89
|
+
DEFAULT: customColor('--bfc-accent', 'transparent'),
|
|
90
|
+
foreground: customColor('--bfc-accent-foreground', 'transparent'),
|
|
91
|
+
},
|
|
92
|
+
popover: {
|
|
93
|
+
DEFAULT: customColor('--bfc-popover', 'transparent'),
|
|
94
|
+
foreground: customColor('--bfc-foreground', 'transparent'),
|
|
95
|
+
},
|
|
96
|
+
card: {
|
|
97
|
+
DEFAULT: customColor('--bfc-card', dark[200]),
|
|
98
|
+
foreground: customColor('--bfc-card-foreground', 'transparent'),
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
keyframes: {
|
|
102
|
+
"accordion-down": {
|
|
103
|
+
from: { height: 0 },
|
|
104
|
+
to: { height: "var(--bfc-radix-accordion-content-height)" },
|
|
105
|
+
},
|
|
106
|
+
"accordion-up": {
|
|
107
|
+
from: { height: "var(--bfc-radix-accordion-content-height)" },
|
|
108
|
+
to: { height: 0 },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
animation: {
|
|
112
|
+
"accordion-down": "accordion-down 0.2s ease-out",
|
|
113
|
+
"accordion-up": "accordion-up 0.2s ease-out",
|
|
114
|
+
},
|
|
115
|
+
maxWidth: {
|
|
116
|
+
threadWidth: '1400px',
|
|
117
|
+
},
|
|
118
|
+
spacing: {
|
|
119
|
+
headerHeight: '64px',
|
|
120
|
+
md: '16px',
|
|
121
|
+
lg: '24px',
|
|
122
|
+
xl: '32px',
|
|
123
|
+
},
|
|
124
|
+
gridTemplateColumns: {
|
|
125
|
+
12: 'repeat(12, minmax(0, 1fr))',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
plugins: [
|
|
130
|
+
require("tailwindcss-animate"),
|
|
131
|
+
require("@tailwindcss/container-queries"),
|
|
132
|
+
plugin(function ({ addBase }) {
|
|
133
|
+
addBase({
|
|
134
|
+
'ul': { listStyleType: 'disc' },
|
|
135
|
+
'ol': { listStyleType: 'decimal' },
|
|
136
|
+
});
|
|
137
|
+
}),
|
|
138
|
+
],
|
|
139
|
+
}
|