@bison-lab/tailwind-preset 0.1.0 → 0.3.0
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/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,10 @@ const bisonPreset = {
|
|
|
17
17
|
DEFAULT: "hsl(var(--secondary))",
|
|
18
18
|
foreground: "hsl(var(--secondary-foreground))"
|
|
19
19
|
},
|
|
20
|
+
highlight: {
|
|
21
|
+
DEFAULT: "hsl(var(--highlight))",
|
|
22
|
+
foreground: "hsl(var(--highlight-foreground))"
|
|
23
|
+
},
|
|
20
24
|
destructive: {
|
|
21
25
|
DEFAULT: "hsl(var(--destructive))",
|
|
22
26
|
foreground: "hsl(var(--destructive-foreground))"
|
|
@@ -29,6 +33,10 @@ const bisonPreset = {
|
|
|
29
33
|
DEFAULT: "hsl(var(--accent))",
|
|
30
34
|
foreground: "hsl(var(--accent-foreground))"
|
|
31
35
|
},
|
|
36
|
+
"brand-accent": {
|
|
37
|
+
DEFAULT: "hsl(var(--brand-accent))",
|
|
38
|
+
foreground: "hsl(var(--brand-accent-foreground))"
|
|
39
|
+
},
|
|
32
40
|
popover: {
|
|
33
41
|
DEFAULT: "hsl(var(--popover))",
|
|
34
42
|
foreground: "hsl(var(--popover-foreground))"
|
|
@@ -73,6 +81,10 @@ const bisonPreset = {
|
|
|
73
81
|
tooltip: "var(--z-tooltip)",
|
|
74
82
|
toast: "var(--z-toast)"
|
|
75
83
|
},
|
|
84
|
+
fontFamily: {
|
|
85
|
+
body: "var(--font-body)",
|
|
86
|
+
heading: "var(--font-heading)"
|
|
87
|
+
},
|
|
76
88
|
fontSize: {
|
|
77
89
|
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
78
90
|
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport animatePlugin from \"tailwindcss-animate\";\n\nconst bisonPreset: Partial<Config> = {\n darkMode: \"class\",\n theme: {\n extend: {\n colors: {\n border: \"hsl(var(--border))\",\n input: \"hsl(var(--input))\",\n ring: \"hsl(var(--ring))\",\n background: \"hsl(var(--background))\",\n foreground: \"hsl(var(--foreground))\",\n primary: {\n DEFAULT: \"hsl(var(--primary))\",\n foreground: \"hsl(var(--primary-foreground))\",\n },\n secondary: {\n DEFAULT: \"hsl(var(--secondary))\",\n foreground: \"hsl(var(--secondary-foreground))\",\n },\n destructive: {\n DEFAULT: \"hsl(var(--destructive))\",\n foreground: \"hsl(var(--destructive-foreground))\",\n },\n muted: {\n DEFAULT: \"hsl(var(--muted))\",\n foreground: \"hsl(var(--muted-foreground))\",\n },\n accent: {\n DEFAULT: \"hsl(var(--accent))\",\n foreground: \"hsl(var(--accent-foreground))\",\n },\n popover: {\n DEFAULT: \"hsl(var(--popover))\",\n foreground: \"hsl(var(--popover-foreground))\",\n },\n card: {\n DEFAULT: \"hsl(var(--card))\",\n foreground: \"hsl(var(--card-foreground))\",\n },\n },\n borderRadius: {\n lg: \"var(--radius-lg)\",\n md: \"var(--radius-md)\",\n sm: \"var(--radius-sm)\",\n xl: \"var(--radius-xl)\",\n full: \"var(--radius-full)\",\n },\n boxShadow: {\n sm: \"var(--shadow-sm)\",\n DEFAULT: \"var(--shadow)\",\n md: \"var(--shadow-md)\",\n lg: \"var(--shadow-lg)\",\n xl: \"var(--shadow-xl)\",\n },\n transitionDuration: {\n fast: \"var(--duration-fast)\",\n normal: \"var(--duration-normal)\",\n slow: \"var(--duration-slow)\",\n },\n transitionTimingFunction: {\n default: \"var(--ease-default)\",\n in: \"var(--ease-in)\",\n out: \"var(--ease-out)\",\n \"in-out\": \"var(--ease-in-out)\",\n },\n zIndex: {\n dropdown: \"var(--z-dropdown)\",\n sticky: \"var(--z-sticky)\",\n fixed: \"var(--z-fixed)\",\n \"modal-backdrop\": \"var(--z-modal-backdrop)\",\n modal: \"var(--z-modal)\",\n popover: \"var(--z-popover)\",\n tooltip: \"var(--z-tooltip)\",\n toast: \"var(--z-toast)\",\n },\n fontSize: {\n xs: [\"0.75rem\", { lineHeight: \"1rem\" }],\n sm: [\"0.875rem\", { lineHeight: \"1.25rem\" }],\n base: [\"1rem\", { lineHeight: \"1.5rem\" }],\n lg: [\"1.125rem\", { lineHeight: \"1.75rem\" }],\n xl: [\"1.25rem\", { lineHeight: \"1.75rem\" }],\n \"2xl\": [\"1.5rem\", { lineHeight: \"2rem\" }],\n \"3xl\": [\"1.875rem\", { lineHeight: \"2.25rem\" }],\n \"4xl\": [\"2.25rem\", { lineHeight: \"2.5rem\" }],\n },\n fontWeight: {\n normal: \"var(--font-weight-normal)\",\n medium: \"var(--font-weight-medium)\",\n semibold: \"var(--font-weight-semibold)\",\n bold: \"var(--font-weight-bold)\",\n },\n keyframes: {\n \"accordion-down\": {\n from: { height: \"0\" },\n to: { height: \"var(--radix-accordion-content-height)\" },\n },\n \"accordion-up\": {\n from: { height: \"var(--radix-accordion-content-height)\" },\n to: { height: \"0\" },\n },\n },\n animation: {\n \"accordion-down\": \"accordion-down var(--duration-normal) var(--ease-out)\",\n \"accordion-up\": \"accordion-up var(--duration-normal) var(--ease-out)\",\n },\n },\n },\n plugins: [animatePlugin],\n};\n\nexport default bisonPreset;\n"],"mappings":";;AAGA,MAAM,cAA+B;CACnC,UAAU;CACV,OAAO,EACL,QAAQ;EACN,QAAQ;GACN,QAAQ;GACR,OAAO;GACP,MAAM;GACN,YAAY;GACZ,YAAY;GACZ,SAAS;IACP,SAAS;IACT,YAAY;IACb;GACD,WAAW;IACT,SAAS;IACT,YAAY;IACb;GACD,aAAa;IACX,SAAS;IACT,YAAY;IACb;GACD,OAAO;IACL,SAAS;IACT,YAAY;IACb;GACD,QAAQ;IACN,SAAS;IACT,YAAY;IACb;GACD,SAA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index.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport animatePlugin from \"tailwindcss-animate\";\n\nconst bisonPreset: Partial<Config> = {\n darkMode: \"class\",\n theme: {\n extend: {\n colors: {\n border: \"hsl(var(--border))\",\n input: \"hsl(var(--input))\",\n ring: \"hsl(var(--ring))\",\n background: \"hsl(var(--background))\",\n foreground: \"hsl(var(--foreground))\",\n primary: {\n DEFAULT: \"hsl(var(--primary))\",\n foreground: \"hsl(var(--primary-foreground))\",\n },\n secondary: {\n DEFAULT: \"hsl(var(--secondary))\",\n foreground: \"hsl(var(--secondary-foreground))\",\n },\n highlight: {\n DEFAULT: \"hsl(var(--highlight))\",\n foreground: \"hsl(var(--highlight-foreground))\",\n },\n destructive: {\n DEFAULT: \"hsl(var(--destructive))\",\n foreground: \"hsl(var(--destructive-foreground))\",\n },\n muted: {\n DEFAULT: \"hsl(var(--muted))\",\n foreground: \"hsl(var(--muted-foreground))\",\n },\n accent: {\n DEFAULT: \"hsl(var(--accent))\",\n foreground: \"hsl(var(--accent-foreground))\",\n },\n \"brand-accent\": {\n DEFAULT: \"hsl(var(--brand-accent))\",\n foreground: \"hsl(var(--brand-accent-foreground))\",\n },\n popover: {\n DEFAULT: \"hsl(var(--popover))\",\n foreground: \"hsl(var(--popover-foreground))\",\n },\n card: {\n DEFAULT: \"hsl(var(--card))\",\n foreground: \"hsl(var(--card-foreground))\",\n },\n },\n borderRadius: {\n lg: \"var(--radius-lg)\",\n md: \"var(--radius-md)\",\n sm: \"var(--radius-sm)\",\n xl: \"var(--radius-xl)\",\n full: \"var(--radius-full)\",\n },\n boxShadow: {\n sm: \"var(--shadow-sm)\",\n DEFAULT: \"var(--shadow)\",\n md: \"var(--shadow-md)\",\n lg: \"var(--shadow-lg)\",\n xl: \"var(--shadow-xl)\",\n },\n transitionDuration: {\n fast: \"var(--duration-fast)\",\n normal: \"var(--duration-normal)\",\n slow: \"var(--duration-slow)\",\n },\n transitionTimingFunction: {\n default: \"var(--ease-default)\",\n in: \"var(--ease-in)\",\n out: \"var(--ease-out)\",\n \"in-out\": \"var(--ease-in-out)\",\n },\n zIndex: {\n dropdown: \"var(--z-dropdown)\",\n sticky: \"var(--z-sticky)\",\n fixed: \"var(--z-fixed)\",\n \"modal-backdrop\": \"var(--z-modal-backdrop)\",\n modal: \"var(--z-modal)\",\n popover: \"var(--z-popover)\",\n tooltip: \"var(--z-tooltip)\",\n toast: \"var(--z-toast)\",\n },\n fontFamily: {\n body: \"var(--font-body)\",\n heading: \"var(--font-heading)\",\n },\n fontSize: {\n xs: [\"0.75rem\", { lineHeight: \"1rem\" }],\n sm: [\"0.875rem\", { lineHeight: \"1.25rem\" }],\n base: [\"1rem\", { lineHeight: \"1.5rem\" }],\n lg: [\"1.125rem\", { lineHeight: \"1.75rem\" }],\n xl: [\"1.25rem\", { lineHeight: \"1.75rem\" }],\n \"2xl\": [\"1.5rem\", { lineHeight: \"2rem\" }],\n \"3xl\": [\"1.875rem\", { lineHeight: \"2.25rem\" }],\n \"4xl\": [\"2.25rem\", { lineHeight: \"2.5rem\" }],\n },\n fontWeight: {\n normal: \"var(--font-weight-normal)\",\n medium: \"var(--font-weight-medium)\",\n semibold: \"var(--font-weight-semibold)\",\n bold: \"var(--font-weight-bold)\",\n },\n keyframes: {\n \"accordion-down\": {\n from: { height: \"0\" },\n to: { height: \"var(--radix-accordion-content-height)\" },\n },\n \"accordion-up\": {\n from: { height: \"var(--radix-accordion-content-height)\" },\n to: { height: \"0\" },\n },\n },\n animation: {\n \"accordion-down\": \"accordion-down var(--duration-normal) var(--ease-out)\",\n \"accordion-up\": \"accordion-up var(--duration-normal) var(--ease-out)\",\n },\n },\n },\n plugins: [animatePlugin],\n};\n\nexport default bisonPreset;\n"],"mappings":";;AAGA,MAAM,cAA+B;CACnC,UAAU;CACV,OAAO,EACL,QAAQ;EACN,QAAQ;GACN,QAAQ;GACR,OAAO;GACP,MAAM;GACN,YAAY;GACZ,YAAY;GACZ,SAAS;IACP,SAAS;IACT,Y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