@kubetail/ui 0.1.7 → 0.1.8
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/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/plugin.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const u=require("@tailwindcss/forms"),t=require("tailwindcss/plugin"),e=require("tailwindcss/colors"),y=u();function r(o){const g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,m=o.replace(g,(b,n,d,c)=>n+n+d+d+c+c),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(m);return a?`${parseInt(a[1],16)} ${parseInt(a[2],16)} ${parseInt(a[3],16)}`:""}const h=t(o=>{y.handler(o);const{addBase:g}=o;g({":root":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.white),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.gray[900]),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[400]),"--popover":r(e.white),"--popover-foreground":r(e.gray[900]),"--primary":r("#456EDE"),"--primary-foreground":r(e.white),"--ring":r(e.blue[400]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[50]),"--chrome-100":r(e.gray[100]),"--chrome-200":r(e.gray[200]),"--chrome-300":r(e.gray[300]),"--chrome-400":r(e.gray[400]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[600]),"--chrome-700":r(e.gray[700]),"--chrome-800":r(e.gray[800]),"--chrome-900":r(e.gray[900]),"--chrome-950":r(e.gray[950]),"--chrome-foreground":r(e.gray[800]),"--chrome-foreground-muted":r(e.gray[500]),"--chrome-foreground-subtle":r(e.gray[300]),"--chrome-divider":r(e.gray[300])},".dark":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.neutral[800]),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.white),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[600]),"--popover":r(e.neutral[800]),"--popover-foreground":r(e.white),"--primary":r(e.blue[500]),"--primary-foreground":r(e.white),"--ring":r(e.blue[
|
|
1
|
+
"use strict";const u=require("@tailwindcss/forms"),t=require("tailwindcss/plugin"),e=require("tailwindcss/colors"),y=u();function r(o){const g=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,m=o.replace(g,(b,n,d,c)=>n+n+d+d+c+c),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(m);return a?`${parseInt(a[1],16)} ${parseInt(a[2],16)} ${parseInt(a[3],16)}`:""}const h=t(o=>{y.handler(o);const{addBase:g}=o;g({":root":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.white),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.gray[900]),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[400]),"--popover":r(e.white),"--popover-foreground":r(e.gray[900]),"--primary":r("#456EDE"),"--primary-foreground":r(e.white),"--ring":r(e.blue[400]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[50]),"--chrome-100":r(e.gray[100]),"--chrome-200":r(e.gray[200]),"--chrome-300":r(e.gray[300]),"--chrome-400":r(e.gray[400]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[600]),"--chrome-700":r(e.gray[700]),"--chrome-800":r(e.gray[800]),"--chrome-900":r(e.gray[900]),"--chrome-950":r(e.gray[950]),"--chrome-foreground":r(e.gray[800]),"--chrome-foreground-muted":r(e.gray[500]),"--chrome-foreground-subtle":r(e.gray[300]),"--chrome-divider":r(e.gray[300])},".dark":{"--accent":r(e.amber[200]),"--accent-foreground":r(e.gray[800]),"--background":r(e.neutral[800]),"--border":r(e.gray[200]),"--danger":r(e.red[500]),"--danger-foreground":r(e.white),"--foreground":r(e.white),"--input":r(e.gray[300]),"--muted":r(e.gray[100]),"--muted-foreground":r(e.gray[600]),"--popover":r(e.neutral[800]),"--popover-foreground":r(e.white),"--primary":r(e.blue[500]),"--primary-foreground":r(e.white),"--ring":r(e.blue[600]),"--secondary":r(e.blue[100]),"--secondary-foreground":r(e.gray[800]),"--chrome-50":r(e.gray[950]),"--chrome-100":r(e.gray[900]),"--chrome-200":r(e.gray[800]),"--chrome-300":r(e.gray[700]),"--chrome-400":r(e.gray[600]),"--chrome-500":r(e.gray[500]),"--chrome-600":r(e.gray[400]),"--chrome-700":r(e.gray[300]),"--chrome-800":r(e.gray[200]),"--chrome-900":r(e.gray[100]),"--chrome-950":r(e.gray[50]),"--chrome-foreground":r(e.white),"--chrome-divider":r(e.gray[700])},"*":{"@apply border-border":""},body:{"@apply bg-background text-foreground":"","font-feature-settings":'"rlig" 1, "calt" 1',"@apply antialiased":""}})},{darkMode:"selector",theme:{screens:{sm:"576px",md:"768px",lg:"992px",xl:"1200px","2xl":"1400px"},extend:{maxWidth:{"max-w-screen-sm":"540px","max-w-screen-md":"720px","max-w-screen-lg":"960px","max-w-screen-xl":"1140px","max-w-screen-2xl":"1320px"},colors:{accent:{DEFAULT:"rgb(var(--accent))",foreground:"rgb(var(--accent-foreground))"},background:{DEFAULT:"rgb(var(--background))"},border:{DEFAULT:"rgb(var(--border))"},danger:{DEFAULT:"rgb(var(--danger))",foreground:"rgb(var(--danger-foreground))"},foreground:{DEFAULT:"rgb(var(--foreground))"},input:{DEFAULT:"rgb(var(--input))"},muted:{DEFAULT:"rgb(var(--muted))",foreground:"rgb(var(--muted-foreground))"},popover:{DEFAULT:"rgb(var(--popover))",foreground:"rgb(var(--popover-foreground))"},primary:{DEFAULT:"rgb(var(--primary))",foreground:"rgb(var(--primary-foreground))"},ring:{DEFAULT:"rgb(var(--ring))"},secondary:{DEFAULT:"rgb(var(--secondary))",foreground:"rgb(var(--secondary-foreground))"},chrome:{50:"rgb(var(--chrome-50))",100:"rgb(var(--chrome-100))",200:"rgb(var(--chrome-200))",300:"rgb(var(--chrome-300))",400:"rgb(var(--chrome-400))",500:"rgb(var(--chrome-500))",600:"rgb(var(--chrome-600))",700:"rgb(var(--chrome-700))",800:"rgb(var(--chrome-800))",900:"rgb(var(--chrome-900))",950:"rgb(var(--chrome-950))",foreground:"rgb(var(--chrome-foreground))",divider:"rgb(var(--chrome-divider))"}}}}});module.exports=h;
|
|
2
2
|
//# sourceMappingURL=plugin.cjs.map
|
package/dist/plugin.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"mHAgBMA,EAAcC,EAAM,EAE1B,SAASC,EAASC,EAAK,CAEnB,MAAMC,EAAiB,mCACjBC,EAAWF,EAAI,QAAQC,EAAgB,CAACE,EAAGC,EAAGC,EAAGC,IAAOF,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,CAAE,EAC9EC,EAAS,4CAA4C,KAAKL,CAAQ,EACjE,OAAAK,EAAS,GAAG,SAASA,EAAO,CAAC,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Q,CACJ,GAAI,wBACJ,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,WAAY,gCACZ,QAAS,4BAAA,CACb,CACJ,CACJ,CAER,CAAC"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[600]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":"mHAgBMA,EAAcC,EAAM,EAE1B,SAASC,EAASC,EAAK,CAEnB,MAAMC,EAAiB,mCACjBC,EAAWF,EAAI,QAAQC,EAAgB,CAACE,EAAGC,EAAGC,EAAGC,IAAOF,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,CAAE,EAC9EC,EAAS,4CAA4C,KAAKL,CAAQ,EACjE,OAAAK,EAAS,GAAG,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,EAAG,EAAE,CAAC,GAAK,EACzG,CAIA,MAAAC,EAAeA,EAAQC,GAAY,CAG/BZ,EAAY,QAAQY,CAAO,EAErB,KAAA,CAAE,QAAAC,GAAYD,EACZC,EAAA,CACJ,QAAS,CACL,WAAYX,EAASY,EAAO,MAAM,GAAG,CAAC,EACtC,sBAAuBZ,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BZ,EAASY,EAAO,KAAK,GAAG,CAAC,EACzC,eAAgBZ,EAASY,EAAO,KAAK,GAAG,CAAC,EACzC,eAAgBZ,EAASY,EAAO,KAAK,EAAE,CAAC,EACxC,sBAAuBZ,EAASY,EAAO,KAAK,EAC5C,mBAAoBZ,EAASY,EAAO,KAAK,GAAG,CAAC,CACjD,EACA,IAAK,CACD,uBAAwB,EAC5B,EACA,KAAM,CACF,uCAAwC,GACxC,wBAAyB,qBACzB,qBAAsB,EAAA,CAC1B,CACH,CACL,EAAG,CACC,SAAU,WACV,MAAO,CACH,QAAS,CACL,GAAI,QACJ,GAAI,QACJ,GAAI,QACJ,GAAI,SACJ,MAAO,QACX,EACA,OAAQ,CACJ,SAAU,CACN,kBAAmB,QACnB,kBAAmB,QACnB,kBAAmB,QACnB,kBAAmB,SACnB,mBAAoB,QACxB,EACA,OAAQ,CACJ,OAAQ,CACJ,QAAS,qBACT,WAAY,+BAChB,EACA,WAAY,CACR,QAAS,wBACb,EACA,OAAQ,CACJ,QAAS,oBACb,EACA,OAAQ,CACJ,QAAS,qBACT,WAAY,+BAChB,EACA,WAAY,CACR,QAAS,wBACb,EACA,MAAO,CACH,QAAS,mBACb,EACA,MAAO,CACH,QAAS,oBACT,WAAY,8BAChB,EACA,QAAS,CACL,QAAS,sBACT,WAAY,gCAChB,EACA,QAAS,CACL,QAAS,sBACT,WAAY,gCAChB,EACA,KAAM,CACF,QAAS,kBACb,EACA,UAAW,CACP,QAAS,wBACT,WAAY,kCAChB,EACA,OAAQ,CACJ,GAAI,wBACJ,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,IAAK,yBACL,WAAY,gCACZ,QAAS,4BAAA,CACb,CACJ,CACJ,CAER,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -59,7 +59,7 @@ const i = t((o) => {
|
|
|
59
59
|
"--popover-foreground": r(e.white),
|
|
60
60
|
"--primary": r(e.blue[500]),
|
|
61
61
|
"--primary-foreground": r(e.white),
|
|
62
|
-
"--ring": r(e.blue[
|
|
62
|
+
"--ring": r(e.blue[600]),
|
|
63
63
|
"--secondary": r(e.blue[100]),
|
|
64
64
|
"--secondary-foreground": r(e.gray[800]),
|
|
65
65
|
"--chrome-50": r(e.gray[950]),
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":";;;AAgBA,MAAMA,IAAcC,EAAM;AAE1B,SAASC,EAASC,GAAK;AAEnB,QAAMC,IAAiB,oCACjBC,IAAWF,EAAI,QAAQC,GAAgB,CAACE,GAAGC,GAAGC,GAAGC,MAAOF,IAAIA,IAAIC,IAAIA,IAAIC,IAAIA,CAAE,GAC9EC,IAAS,4CAA4C,KAAKL,CAAQ;AACjE,SAAAK,IAAS,GAAG,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,KAAK;AACzG;AAIA,MAAAC,IAAeA,EAAO,CAACC,MAAY;AAG/B,EAAAZ,EAAY,QAAQY,CAAO;AAErB,QAAA,EAAE,SAAAC,MAAYD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AQ;AAAA,UACJ,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,YAAY;AAAA,UACR,SAAS;AAAA,QACb;AAAA,QACA,QAAQ;AAAA,UACJ,SAAS;AAAA,QACb;AAAA,QACA,QAAQ;AAAA,UACJ,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,YAAY;AAAA,UACR,SAAS;AAAA,QACb;AAAA,QACA,OAAO;AAAA,UACH,SAAS;AAAA,QACb;AAAA,QACA,OAAO;AAAA,UACH,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,SAAS;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,SAAS;AAAA,UACL,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,MAAM;AAAA,UACF,SAAS;AAAA,QACb;AAAA,QACA,WAAW;AAAA,UACP,SAAS;AAAA,UACT,YAAY;AAAA,QAChB;AAAA,QACA,QAAQ;AAAA,UACJ,IAAI;AAAA,UACJ,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,KAAK;AAAA,UACL,YAAY;AAAA,UACZ,SAAS;AAAA,QAAA;AAAA,MACb;AAAA,IACJ;AAAA,EACJ;AAER,CAAC;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/plugin.ts"],"sourcesContent":["// Copyright 2024-2025 Andres Morey\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport forms from '@tailwindcss/forms';\nimport plugin from 'tailwindcss/plugin';\nimport colors from 'tailwindcss/colors';\nconst formsPlugin = forms();\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nfunction hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const hexFixed = hex.replace(shorthandRegex, (_, r, g, b) => (r + r + g + g + b + b));\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hexFixed);\n return result ? `${parseInt(result[1], 16)} ${parseInt(result[2], 16)} ${parseInt(result[3], 16)}` : '';\n}\n/**\n * Plugin\n */\nexport default plugin((apiArgs) => {\n // initialize forms plugin\n // @ts-expect-error Expected 0 arguments, but got 1.\n formsPlugin.handler(apiArgs);\n // add custom styles\n const { addBase } = apiArgs;\n addBase({\n ':root': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.white),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.gray[900]),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[400]),\n '--popover': hexToRgb(colors.white),\n '--popover-foreground': hexToRgb(colors.gray[900]),\n '--primary': hexToRgb('#456EDE'),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[400]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[50]),\n '--chrome-100': hexToRgb(colors.gray[100]),\n '--chrome-200': hexToRgb(colors.gray[200]),\n '--chrome-300': hexToRgb(colors.gray[300]),\n '--chrome-400': hexToRgb(colors.gray[400]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[600]),\n '--chrome-700': hexToRgb(colors.gray[700]),\n '--chrome-800': hexToRgb(colors.gray[800]),\n '--chrome-900': hexToRgb(colors.gray[900]),\n '--chrome-950': hexToRgb(colors.gray[950]),\n '--chrome-foreground': hexToRgb(colors.gray[800]),\n '--chrome-foreground-muted': hexToRgb(colors.gray[500]),\n '--chrome-foreground-subtle': hexToRgb(colors.gray[300]),\n '--chrome-divider': hexToRgb(colors.gray[300]),\n },\n '.dark': {\n '--accent': hexToRgb(colors.amber[200]),\n '--accent-foreground': hexToRgb(colors.gray[800]),\n '--background': hexToRgb(colors.neutral[800]),\n '--border': hexToRgb(colors.gray[200]),\n '--danger': hexToRgb(colors.red[500]),\n '--danger-foreground': hexToRgb(colors.white),\n '--foreground': hexToRgb(colors.white),\n '--input': hexToRgb(colors.gray[300]),\n '--muted': hexToRgb(colors.gray[100]),\n '--muted-foreground': hexToRgb(colors.gray[600]),\n '--popover': hexToRgb(colors.neutral[800]),\n '--popover-foreground': hexToRgb(colors.white),\n '--primary': hexToRgb(colors.blue[500]),\n '--primary-foreground': hexToRgb(colors.white),\n '--ring': hexToRgb(colors.blue[600]),\n '--secondary': hexToRgb(colors.blue[100]),\n '--secondary-foreground': hexToRgb(colors.gray[800]),\n '--chrome-50': hexToRgb(colors.gray[950]),\n '--chrome-100': hexToRgb(colors.gray[900]),\n '--chrome-200': hexToRgb(colors.gray[800]),\n '--chrome-300': hexToRgb(colors.gray[700]),\n '--chrome-400': hexToRgb(colors.gray[600]),\n '--chrome-500': hexToRgb(colors.gray[500]),\n '--chrome-600': hexToRgb(colors.gray[400]),\n '--chrome-700': hexToRgb(colors.gray[300]),\n '--chrome-800': hexToRgb(colors.gray[200]),\n '--chrome-900': hexToRgb(colors.gray[100]),\n '--chrome-950': hexToRgb(colors.gray[50]),\n '--chrome-foreground': hexToRgb(colors.white),\n '--chrome-divider': hexToRgb(colors.gray[700]),\n },\n '*': {\n '@apply border-border': '',\n },\n body: {\n '@apply bg-background text-foreground': '',\n 'font-feature-settings': '\"rlig\" 1, \"calt\" 1',\n '@apply antialiased': '',\n },\n });\n}, {\n darkMode: 'selector',\n theme: {\n screens: {\n sm: '576px',\n md: '768px',\n lg: '992px',\n xl: '1200px',\n '2xl': '1400px',\n },\n extend: {\n maxWidth: {\n 'max-w-screen-sm': '540px',\n 'max-w-screen-md': '720px',\n 'max-w-screen-lg': '960px',\n 'max-w-screen-xl': '1140px',\n 'max-w-screen-2xl': '1320px',\n },\n colors: {\n accent: {\n DEFAULT: 'rgb(var(--accent))',\n foreground: 'rgb(var(--accent-foreground))',\n },\n background: {\n DEFAULT: 'rgb(var(--background))',\n },\n border: {\n DEFAULT: 'rgb(var(--border))',\n },\n danger: {\n DEFAULT: 'rgb(var(--danger))',\n foreground: 'rgb(var(--danger-foreground))',\n },\n foreground: {\n DEFAULT: 'rgb(var(--foreground))',\n },\n input: {\n DEFAULT: 'rgb(var(--input))',\n },\n muted: {\n DEFAULT: 'rgb(var(--muted))',\n foreground: 'rgb(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'rgb(var(--popover))',\n foreground: 'rgb(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'rgb(var(--primary))',\n foreground: 'rgb(var(--primary-foreground))',\n },\n ring: {\n DEFAULT: 'rgb(var(--ring))',\n },\n secondary: {\n DEFAULT: 'rgb(var(--secondary))',\n foreground: 'rgb(var(--secondary-foreground))',\n },\n chrome: {\n 50: 'rgb(var(--chrome-50))',\n 100: 'rgb(var(--chrome-100))',\n 200: 'rgb(var(--chrome-200))',\n 300: 'rgb(var(--chrome-300))',\n 400: 'rgb(var(--chrome-400))',\n 500: 'rgb(var(--chrome-500))',\n 600: 'rgb(var(--chrome-600))',\n 700: 'rgb(var(--chrome-700))',\n 800: 'rgb(var(--chrome-800))',\n 900: 'rgb(var(--chrome-900))',\n 950: 'rgb(var(--chrome-950))',\n foreground: 'rgb(var(--chrome-foreground))',\n divider: 'rgb(var(--chrome-divider))',\n },\n },\n },\n },\n});\n"],"names":["formsPlugin","forms","hexToRgb","hex","shorthandRegex","hexFixed","_","r","g","b","result","plugin","apiArgs","addBase","colors"],"mappings":";;;AAgBA,MAAMA,IAAcC,EAAM;AAE1B,SAASC,EAASC,GAAK;AAEnB,QAAMC,IAAiB,oCACjBC,IAAWF,EAAI,QAAQC,GAAgB,CAACE,GAAGC,GAAGC,GAAGC,MAAOF,IAAIA,IAAIC,IAAIA,IAAIC,IAAIA,CAAE,GAC9EC,IAAS,4CAA4C,KAAKL,CAAQ;AACjE,SAAAK,IAAS,GAAG,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,IAAI,SAASA,EAAO,CAAC,GAAG,EAAE,CAAC,KAAK;AACzG;AAIA,MAAAC,IAAeA,EAAO,CAACC,MAAY;AAG/B,EAAAZ,EAAY,QAAQY,CAAO;AAErB,QAAA,EAAE,SAAAC,MAAYD;AACZ,EAAAC,EAAA;AAAA,IACJ,SAAS;AAAA,MACL,YAAYX,EAASY,EAAO,MAAM,GAAG,CAAC;AAAA,MACtC,uBAAuBZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MAChD,gBAAgBZ,EAASY,EAAO,KAAK;AAAA,MACrC,YAAYZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACrC,YAAYZ,EAASY,EAAO,IAAI,GAAG,CAAC;AAAA,MACpC,uBAAuBZ,EAASY,EAAO,KAAK;AAAA,MAC5C,gBAAgBZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACzC,WAAWZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACpC,WAAWZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MACpC,sBAAsBZ,EAASY,EAAO,KAAK,GAAG,CAAC;AAAA,MAC/C,aAAaZ,EAASY,EAAO,KAAK;AAAA,MAClC,wBAAwBZ,EAASY,EAAO,K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