@brainfish-ai/components 0.0.47 → 0.0.48-alpha.1

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.
@@ -1,6 +1,10 @@
1
+ const { BrainfishColors } = require('./src/colors');
2
+ const { neutral, zinc } = require('tailwindcss/colors')
3
+ const { blue, dark, green, orange, pink, primary, purple, red, yellow } = BrainfishColors;
4
+
1
5
  /** @type {import('tailwindcss').Config} */
2
6
  module.exports = {
3
- darkMode: ["class", '[data-mode="dark"]'],
7
+ darkMode: ["class"],
4
8
  content: [
5
9
  "./index.html",
6
10
  "./src/**/*.{js,ts,jsx,tsx}",
@@ -15,52 +19,86 @@ module.exports = {
15
19
  },
16
20
  extend: {
17
21
  colors: {
18
- border: "hsl(var(--border))",
19
- input: "hsl(var(--input))",
20
- ring: "hsl(var(--ring))",
21
- background: "hsl(var(--background))",
22
- foreground: "hsl(var(--foreground))",
23
- primary: {
24
- DEFAULT: "hsl(var(--primary))",
25
- foreground: "hsl(var(--primary-foreground))",
22
+ primary,
23
+ base: {
24
+ orange: orange[400],
25
+ yellow: yellow[400],
26
+ primary: primary[400],
27
+ green: green[400],
28
+ blue: blue[500],
29
+ purple: purple[500],
30
+ pink: pink[400],
31
+ red: red[500],
32
+ orangeLight: orange[100],
33
+ yellowLight: yellow[100],
34
+ primaryLight: primary[100],
35
+ greenLight: green[100],
36
+ blueLight: blue[100],
37
+ purpleLight: purple[100],
38
+ pinkLight: pink[100],
39
+ redLight: red[100],
26
40
  },
41
+ dark,
42
+ orange,
43
+ yellow,
44
+ green,
45
+ blue,
46
+ purple,
47
+ pink,
48
+ red,
49
+
50
+ border: `var(--bfc-border, ${dark[900]})`,
51
+ input: `var(--bfc-input, ${dark[200]})`,
52
+ ring: `var(--bfc-border, ${dark[900]})`,
53
+ background: `var(--bfc-background, ${dark[200]})`,
54
+ foreground: `var(--bfc-foreground, ${dark.DEFAULT})`,
55
+ feedback: {
56
+ positive: `var(--bfc-feedback-positive, ${green[500]})`,
57
+ negative: `var(--bfc-feedback-negative, ${red[500]})`,
58
+ },
59
+ link: `var(--bfc-link, ${blue[500]})`,
60
+ surface: {
61
+ DEFAULT: `var(--bfc-surface, ${neutral[800]})`,
62
+ border: `var(--bfc-surface-border, ${zinc[800]})`,
63
+ },
64
+
27
65
  secondary: {
28
- DEFAULT: "hsl(var(--secondary))",
29
- foreground: "hsl(var(--secondary-foreground))",
66
+ DEFAULT: `var(--bfc-secondary)`,
67
+ foreground: "var(--bfc-secondary-foreground)",
30
68
  },
31
69
  destructive: {
32
- DEFAULT: "hsl(var(--destructive))",
33
- foreground: "hsl(var(--destructive-foreground))",
70
+ DEFAULT: "var(--bfc-destructive)",
71
+ foreground: "var(--bfc-destructive-foreground)",
34
72
  },
35
73
  muted: {
36
- DEFAULT: "hsl(var(--muted))",
37
- foreground: "hsl(var(--muted-foreground))",
74
+ DEFAULT: "var(--bfc-muted)",
75
+ foreground: "var(--bfc-muted-foreground)",
38
76
  },
39
77
  accent: {
40
- DEFAULT: "hsl(var(--accent))",
41
- foreground: "hsl(var(--accent-foreground))",
78
+ DEFAULT: "var(--bfc-accent)",
79
+ foreground: "var(--bfc-accent-foreground)",
42
80
  },
43
81
  popover: {
44
- DEFAULT: "hsl(var(--popover))",
45
- foreground: "hsl(var(--popover-foreground))",
82
+ DEFAULT: "var(--bfc-popover)",
83
+ foreground: "var(--bfc-foreground)",
46
84
  },
47
85
  card: {
48
- DEFAULT: "hsl(var(--card))",
49
- foreground: "hsl(var(--card-foreground))",
86
+ DEFAULT: `var(--bfc-card, ${dark[200]})`,
87
+ foreground: "var(--bfc-card-foreground)",
50
88
  },
51
89
  },
52
90
  borderRadius: {
53
- lg: "var(--radius)",
54
- md: "calc(var(--radius) - 2px)",
55
- sm: "calc(var(--radius) - 4px)",
91
+ lg: "var(--bfc-radius)",
92
+ md: "calc(var(--bfc-radius) - 2px)",
93
+ sm: "calc(var(--bfc-radius) - 4px)",
56
94
  },
57
95
  keyframes: {
58
96
  "accordion-down": {
59
97
  from: { height: 0 },
60
- to: { height: "var(--radix-accordion-content-height)" },
98
+ to: { height: "var(--bfc-radix-accordion-content-height)" },
61
99
  },
62
100
  "accordion-up": {
63
- from: { height: "var(--radix-accordion-content-height)" },
101
+ from: { height: "var(--bfc-radix-accordion-content-height)" },
64
102
  to: { height: 0 },
65
103
  },
66
104
  },