@fluixi-css/core 0.1.0-next.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/LICENSE +21 -0
- package/README.md +52 -0
- package/base.css +4 -0
- package/components.css +1 -0
- package/dist/base.css +4 -0
- package/dist/components.css +1 -0
- package/dist/index.css +2 -0
- package/dist/package.json +139 -0
- package/dist/reset.css +168 -0
- package/dist/src/ast.d.ts +298 -0
- package/dist/src/ast.js +2240 -0
- package/dist/src/ast.js.map +1 -0
- package/dist/src/commons/constants.d.ts +1193 -0
- package/dist/src/commons/constants.js +1323 -0
- package/dist/src/commons/constants.js.map +1 -0
- package/dist/src/commons/helper.d.ts +1298 -0
- package/dist/src/commons/helper.js +1310 -0
- package/dist/src/commons/helper.js.map +1 -0
- package/dist/src/commons/index.d.ts +3 -0
- package/dist/src/commons/index.js +4 -0
- package/dist/src/commons/index.js.map +1 -0
- package/dist/src/commons/properties.d.ts +1431 -0
- package/dist/src/commons/properties.js +2855 -0
- package/dist/src/commons/properties.js.map +1 -0
- package/dist/src/commons/types.d.ts +359 -0
- package/dist/src/commons/types.js +4 -0
- package/dist/src/commons/types.js.map +1 -0
- package/dist/src/components/avatar/index.d.ts +19 -0
- package/dist/src/components/avatar/index.js +22 -0
- package/dist/src/components/avatar/index.js.map +1 -0
- package/dist/src/components/button/index.d.ts +48 -0
- package/dist/src/components/button/index.js +51 -0
- package/dist/src/components/button/index.js.map +1 -0
- package/dist/src/components/card/index.d.ts +44 -0
- package/dist/src/components/card/index.js +47 -0
- package/dist/src/components/card/index.js.map +1 -0
- package/dist/src/components/checkbox/index.d.ts +69 -0
- package/dist/src/components/checkbox/index.js +80 -0
- package/dist/src/components/checkbox/index.js.map +1 -0
- package/dist/src/components/daterangepicker/index.d.ts +147 -0
- package/dist/src/components/daterangepicker/index.js +150 -0
- package/dist/src/components/daterangepicker/index.js.map +1 -0
- package/dist/src/components/dialog/index.d.ts +71 -0
- package/dist/src/components/dialog/index.js +74 -0
- package/dist/src/components/dialog/index.js.map +1 -0
- package/dist/src/components/drawer/index.d.ts +26 -0
- package/dist/src/components/drawer/index.js +29 -0
- package/dist/src/components/drawer/index.js.map +1 -0
- package/dist/src/components/dropdown/index.d.ts +101 -0
- package/dist/src/components/dropdown/index.js +104 -0
- package/dist/src/components/dropdown/index.js.map +1 -0
- package/dist/src/components/forms/index.d.ts +58 -0
- package/dist/src/components/forms/index.js +62 -0
- package/dist/src/components/forms/index.js.map +1 -0
- package/dist/src/components/index.d.ts +1228 -0
- package/dist/src/components/index.js +64 -0
- package/dist/src/components/index.js.map +1 -0
- package/dist/src/components/layout/index.d.ts +28 -0
- package/dist/src/components/layout/index.js +33 -0
- package/dist/src/components/layout/index.js.map +1 -0
- package/dist/src/components/list/index.d.ts +65 -0
- package/dist/src/components/list/index.js +68 -0
- package/dist/src/components/list/index.js.map +1 -0
- package/dist/src/components/popover/index.d.ts +79 -0
- package/dist/src/components/popover/index.js +82 -0
- package/dist/src/components/popover/index.js.map +1 -0
- package/dist/src/components/radio/index.d.ts +77 -0
- package/dist/src/components/radio/index.js +80 -0
- package/dist/src/components/radio/index.js.map +1 -0
- package/dist/src/components/select/index.d.ts +102 -0
- package/dist/src/components/select/index.js +105 -0
- package/dist/src/components/select/index.js.map +1 -0
- package/dist/src/components/sidenav/index.d.ts +98 -0
- package/dist/src/components/sidenav/index.js +101 -0
- package/dist/src/components/sidenav/index.js.map +1 -0
- package/dist/src/components/table/index.d.ts +95 -0
- package/dist/src/components/table/index.js +98 -0
- package/dist/src/components/table/index.js.map +1 -0
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/constants.js +29 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/css-ast.d.ts +48 -0
- package/dist/src/css-ast.js +2 -0
- package/dist/src/css-ast.js.map +1 -0
- package/dist/src/css-generator.d.ts +29 -0
- package/dist/src/css-generator.js +104 -0
- package/dist/src/css-generator.js.map +1 -0
- package/dist/src/css-helpers.d.ts +76 -0
- package/dist/src/css-helpers.js +272 -0
- package/dist/src/css-helpers.js.map +1 -0
- package/dist/src/css-lexer.d.ts +48 -0
- package/dist/src/css-lexer.js +255 -0
- package/dist/src/css-lexer.js.map +1 -0
- package/dist/src/css-parser.cjs +2047 -0
- package/dist/src/css-parser.cjs.map +1 -0
- package/dist/src/css-parser.d.ts +100 -0
- package/dist/src/css-parser.js +1098 -0
- package/dist/src/css-parser.js.map +1 -0
- package/dist/src/css-parser.mjs +2028 -0
- package/dist/src/css-parser.mjs.map +1 -0
- package/dist/src/design-system.d.ts +210 -0
- package/dist/src/design-system.js +1034 -0
- package/dist/src/design-system.js.map +1 -0
- package/dist/src/engine/ast.d.ts +44 -0
- package/dist/src/engine/ast.js +92 -0
- package/dist/src/engine/ast.js.map +1 -0
- package/dist/src/engine/atom.d.ts +74 -0
- package/dist/src/engine/atom.js +227 -0
- package/dist/src/engine/atom.js.map +1 -0
- package/dist/src/engine/compile.d.ts +5 -0
- package/dist/src/engine/compile.js +79 -0
- package/dist/src/engine/compile.js.map +1 -0
- package/dist/src/engine/defaults.d.ts +2 -0
- package/dist/src/engine/defaults.js +14 -0
- package/dist/src/engine/defaults.js.map +1 -0
- package/dist/src/engine/directives.d.ts +2 -0
- package/dist/src/engine/directives.js +191 -0
- package/dist/src/engine/directives.js.map +1 -0
- package/dist/src/engine/index.d.ts +41 -0
- package/dist/src/engine/index.js +88 -0
- package/dist/src/engine/index.js.map +1 -0
- package/dist/src/engine/registry.d.ts +46 -0
- package/dist/src/engine/registry.js +49 -0
- package/dist/src/engine/registry.js.map +1 -0
- package/dist/src/engine/scanner.d.ts +1 -0
- package/dist/src/engine/scanner.js +45 -0
- package/dist/src/engine/scanner.js.map +1 -0
- package/dist/src/engine/source.d.ts +12 -0
- package/dist/src/engine/source.js +81 -0
- package/dist/src/engine/source.js.map +1 -0
- package/dist/src/engine/theme-defaults.d.ts +2 -0
- package/dist/src/engine/theme-defaults.js +54 -0
- package/dist/src/engine/theme-defaults.js.map +1 -0
- package/dist/src/engine/theme-source.d.ts +5 -0
- package/dist/src/engine/theme-source.js +71 -0
- package/dist/src/engine/theme-source.js.map +1 -0
- package/dist/src/engine/theme.d.ts +10 -0
- package/dist/src/engine/theme.js +42 -0
- package/dist/src/engine/theme.js.map +1 -0
- package/dist/src/engine/transform.d.ts +25 -0
- package/dist/src/engine/transform.js +91 -0
- package/dist/src/engine/transform.js.map +1 -0
- package/dist/src/engine/ui-preset.d.ts +4 -0
- package/dist/src/engine/ui-preset.js +56 -0
- package/dist/src/engine/ui-preset.js.map +1 -0
- package/dist/src/engine/utilities/backgrounds.d.ts +2 -0
- package/dist/src/engine/utilities/backgrounds.js +32 -0
- package/dist/src/engine/utilities/backgrounds.js.map +1 -0
- package/dist/src/engine/utilities/borders.d.ts +2 -0
- package/dist/src/engine/utilities/borders.js +95 -0
- package/dist/src/engine/utilities/borders.js.map +1 -0
- package/dist/src/engine/utilities/effects.d.ts +2 -0
- package/dist/src/engine/utilities/effects.js +61 -0
- package/dist/src/engine/utilities/effects.js.map +1 -0
- package/dist/src/engine/utilities/flexgrid.d.ts +2 -0
- package/dist/src/engine/utilities/flexgrid.js +125 -0
- package/dist/src/engine/utilities/flexgrid.js.map +1 -0
- package/dist/src/engine/utilities/index.d.ts +3 -0
- package/dist/src/engine/utilities/index.js +20 -0
- package/dist/src/engine/utilities/index.js.map +1 -0
- package/dist/src/engine/utilities/layout.d.ts +2 -0
- package/dist/src/engine/utilities/layout.js +84 -0
- package/dist/src/engine/utilities/layout.js.map +1 -0
- package/dist/src/engine/utilities/sizing.d.ts +2 -0
- package/dist/src/engine/utilities/sizing.js +21 -0
- package/dist/src/engine/utilities/sizing.js.map +1 -0
- package/dist/src/engine/utilities/spacing.d.ts +2 -0
- package/dist/src/engine/utilities/spacing.js +39 -0
- package/dist/src/engine/utilities/spacing.js.map +1 -0
- package/dist/src/engine/utilities/typography.d.ts +2 -0
- package/dist/src/engine/utilities/typography.js +120 -0
- package/dist/src/engine/utilities/typography.js.map +1 -0
- package/dist/src/engine/utilities/values.d.ts +16 -0
- package/dist/src/engine/utilities/values.js +91 -0
- package/dist/src/engine/utilities/values.js.map +1 -0
- package/dist/src/engine/variants.d.ts +2 -0
- package/dist/src/engine/variants.js +99 -0
- package/dist/src/engine/variants.js.map +1 -0
- package/dist/src/extractor.d.ts +146 -0
- package/dist/src/extractor.js +3862 -0
- package/dist/src/extractor.js.map +1 -0
- package/dist/src/index.cjs +4518 -0
- package/dist/src/index.cjs.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/index.mjs +4480 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/src/keyframes.cjs +367 -0
- package/dist/src/keyframes.cjs.map +1 -0
- package/dist/src/keyframes.d.ts +27 -0
- package/dist/src/keyframes.js +188 -0
- package/dist/src/keyframes.js.map +1 -0
- package/dist/src/keyframes.mjs +362 -0
- package/dist/src/keyframes.mjs.map +1 -0
- package/dist/src/logger.d.ts +2 -0
- package/dist/src/logger.js +31 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/plugin.cjs +43 -0
- package/dist/src/plugin.cjs.map +1 -0
- package/dist/src/plugin.d.ts +12 -0
- package/dist/src/plugin.js +39 -0
- package/dist/src/plugin.js.map +1 -0
- package/dist/src/plugin.mjs +41 -0
- package/dist/src/plugin.mjs.map +1 -0
- package/dist/src/presets-plugins.cjs +99 -0
- package/dist/src/presets-plugins.cjs.map +1 -0
- package/dist/src/presets-plugins.d.ts +1 -0
- package/dist/src/presets-plugins.js +56 -0
- package/dist/src/presets-plugins.js.map +1 -0
- package/dist/src/presets-plugins.mjs +97 -0
- package/dist/src/presets-plugins.mjs.map +1 -0
- package/dist/src/state.d.ts +76 -0
- package/dist/src/state.js +314 -0
- package/dist/src/state.js.map +1 -0
- package/dist/src/theme/constants.d.ts +22 -0
- package/dist/src/theme/constants.js +17 -0
- package/dist/src/theme/constants.js.map +1 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/theme/index.js +48 -0
- package/dist/src/theme/index.js.map +1 -0
- package/dist/src/theme/types.d.ts +13 -0
- package/dist/src/theme/types.js +2 -0
- package/dist/src/theme/types.js.map +1 -0
- package/dist/src/types/ast.d.ts +23 -0
- package/dist/src/types/ast.js +2 -0
- package/dist/src/types/ast.js.map +1 -0
- package/dist/src/types/base-types.d.ts +53 -0
- package/dist/src/types/base-types.js +2 -0
- package/dist/src/types/base-types.js.map +1 -0
- package/dist/src/types/components-types.d.ts +28 -0
- package/dist/src/types/components-types.js +2 -0
- package/dist/src/types/components-types.js.map +1 -0
- package/dist/src/types/config.d.ts +90 -0
- package/dist/src/types/config.js +3 -0
- package/dist/src/types/config.js.map +1 -0
- package/dist/src/types/css-parser.d.ts +361 -0
- package/dist/src/types/css-parser.js +2 -0
- package/dist/src/types/css-parser.js.map +1 -0
- package/dist/src/types/keyframes-type.d.ts +47 -0
- package/dist/src/types/keyframes-type.js +2 -0
- package/dist/src/types/keyframes-type.js.map +1 -0
- package/dist/src/types/plugin.d.ts +10 -0
- package/dist/src/types/plugin.js +2 -0
- package/dist/src/types/plugin.js.map +1 -0
- package/dist/src/types/screens-types.d.ts +47 -0
- package/dist/src/types/screens-types.js +2 -0
- package/dist/src/types/screens-types.js.map +1 -0
- package/dist/src/types/utilities-types.d.ts +147 -0
- package/dist/src/types/utilities-types.js +2 -0
- package/dist/src/types/utilities-types.js.map +1 -0
- package/dist/src/types.d.ts +77 -0
- package/dist/src/types.js +12 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/units/constants.d.ts +35 -0
- package/dist/src/units/constants.js +9 -0
- package/dist/src/units/constants.js.map +1 -0
- package/dist/src/units/index.d.ts +15 -0
- package/dist/src/units/index.js +7 -0
- package/dist/src/units/index.js.map +1 -0
- package/dist/src/units/types.d.ts +9 -0
- package/dist/src/units/types.js +2 -0
- package/dist/src/units/types.js.map +1 -0
- package/dist/src/utilities/backgrounds/constants.d.ts +2810 -0
- package/dist/src/utilities/backgrounds/constants.js +119 -0
- package/dist/src/utilities/backgrounds/constants.js.map +1 -0
- package/dist/src/utilities/backgrounds/index.d.ts +1 -0
- package/dist/src/utilities/backgrounds/index.js +2 -0
- package/dist/src/utilities/backgrounds/index.js.map +1 -0
- package/dist/src/utilities/borders/constants.d.ts +10586 -0
- package/dist/src/utilities/borders/constants.js +309 -0
- package/dist/src/utilities/borders/constants.js.map +1 -0
- package/dist/src/utilities/borders/index.d.ts +1 -0
- package/dist/src/utilities/borders/index.js +2 -0
- package/dist/src/utilities/borders/index.js.map +1 -0
- package/dist/src/utilities/breakpoints/constants.d.ts +330 -0
- package/dist/src/utilities/breakpoints/constants.js +269 -0
- package/dist/src/utilities/breakpoints/constants.js.map +1 -0
- package/dist/src/utilities/breakpoints/index.d.ts +2 -0
- package/dist/src/utilities/breakpoints/index.js +3 -0
- package/dist/src/utilities/breakpoints/index.js.map +1 -0
- package/dist/src/utilities/breakpoints/types.d.ts +8 -0
- package/dist/src/utilities/breakpoints/types.js +2 -0
- package/dist/src/utilities/breakpoints/types.js.map +1 -0
- package/dist/src/utilities/colors/base.d.ts +778 -0
- package/dist/src/utilities/colors/base.js +872 -0
- package/dist/src/utilities/colors/base.js.map +1 -0
- package/dist/src/utilities/colors/color.d.ts +1122 -0
- package/dist/src/utilities/colors/color.js +957 -0
- package/dist/src/utilities/colors/color.js.map +1 -0
- package/dist/src/utilities/colors/constants.d.ts +1 -0
- package/dist/src/utilities/colors/constants.js +2 -0
- package/dist/src/utilities/colors/constants.js.map +1 -0
- package/dist/src/utilities/colors/index.d.ts +4 -0
- package/dist/src/utilities/colors/index.js +29 -0
- package/dist/src/utilities/colors/index.js.map +1 -0
- package/dist/src/utilities/colors/types.d.ts +3 -0
- package/dist/src/utilities/colors/types.js +2 -0
- package/dist/src/utilities/colors/types.js.map +1 -0
- package/dist/src/utilities/effects/constants.d.ts +641 -0
- package/dist/src/utilities/effects/constants.js +83 -0
- package/dist/src/utilities/effects/constants.js.map +1 -0
- package/dist/src/utilities/effects/index.d.ts +1 -0
- package/dist/src/utilities/effects/index.js +2 -0
- package/dist/src/utilities/effects/index.js.map +1 -0
- package/dist/src/utilities/filters/constants.d.ts +406 -0
- package/dist/src/utilities/filters/constants.js +206 -0
- package/dist/src/utilities/filters/constants.js.map +1 -0
- package/dist/src/utilities/filters/index.d.ts +1 -0
- package/dist/src/utilities/filters/index.js +2 -0
- package/dist/src/utilities/filters/index.js.map +1 -0
- package/dist/src/utilities/flex/constants.d.ts +934 -0
- package/dist/src/utilities/flex/constants.js +221 -0
- package/dist/src/utilities/flex/constants.js.map +1 -0
- package/dist/src/utilities/flex/index.d.ts +1 -0
- package/dist/src/utilities/flex/index.js +2 -0
- package/dist/src/utilities/flex/index.js.map +1 -0
- package/dist/src/utilities/flex/types.d.ts +0 -0
- package/dist/src/utilities/flex/types.js +4 -0
- package/dist/src/utilities/flex/types.js.map +1 -0
- package/dist/src/utilities/index.d.ts +31338 -0
- package/dist/src/utilities/index.js +333 -0
- package/dist/src/utilities/index.js.map +1 -0
- package/dist/src/utilities/interactivity/constants.d.ts +1244 -0
- package/dist/src/utilities/interactivity/constants.js +165 -0
- package/dist/src/utilities/interactivity/constants.js.map +1 -0
- package/dist/src/utilities/interactivity/index.d.ts +1 -0
- package/dist/src/utilities/interactivity/index.js +2 -0
- package/dist/src/utilities/interactivity/index.js.map +1 -0
- package/dist/src/utilities/layout/constants.d.ts +837 -0
- package/dist/src/utilities/layout/constants.js +159 -0
- package/dist/src/utilities/layout/constants.js.map +1 -0
- package/dist/src/utilities/layout/index.d.ts +1 -0
- package/dist/src/utilities/layout/index.js +2 -0
- package/dist/src/utilities/layout/index.js.map +1 -0
- package/dist/src/utilities/layout/types.d.ts +0 -0
- package/dist/src/utilities/layout/types.js +2 -0
- package/dist/src/utilities/layout/types.js.map +1 -0
- package/dist/src/utilities/sizing/constants.d.ts +989 -0
- package/dist/src/utilities/sizing/constants.js +53 -0
- package/dist/src/utilities/sizing/constants.js.map +1 -0
- package/dist/src/utilities/sizing/index.d.ts +2 -0
- package/dist/src/utilities/sizing/index.js +3 -0
- package/dist/src/utilities/sizing/index.js.map +1 -0
- package/dist/src/utilities/sizing/types.d.ts +10 -0
- package/dist/src/utilities/sizing/types.js +2 -0
- package/dist/src/utilities/sizing/types.js.map +1 -0
- package/dist/src/utilities/spacing/constants.d.ts +1779 -0
- package/dist/src/utilities/spacing/constants.js +142 -0
- package/dist/src/utilities/spacing/constants.js.map +1 -0
- package/dist/src/utilities/spacing/index.d.ts +2 -0
- package/dist/src/utilities/spacing/index.js +3 -0
- package/dist/src/utilities/spacing/index.js.map +1 -0
- package/dist/src/utilities/spacing/types.d.ts +15 -0
- package/dist/src/utilities/spacing/types.js +8 -0
- package/dist/src/utilities/spacing/types.js.map +1 -0
- package/dist/src/utilities/svg/constants.d.ts +1062 -0
- package/dist/src/utilities/svg/constants.js +34 -0
- package/dist/src/utilities/svg/constants.js.map +1 -0
- package/dist/src/utilities/transforms/constants.d.ts +247 -0
- package/dist/src/utilities/transforms/constants.js +74 -0
- package/dist/src/utilities/transforms/constants.js.map +1 -0
- package/dist/src/utilities/transforms/index.d.ts +1 -0
- package/dist/src/utilities/transforms/index.js +2 -0
- package/dist/src/utilities/transforms/index.js.map +1 -0
- package/dist/src/utilities/transitions/constants.d.ts +116 -0
- package/dist/src/utilities/transitions/constants.js +91 -0
- package/dist/src/utilities/transitions/constants.js.map +1 -0
- package/dist/src/utilities/transitions/index.d.ts +1 -0
- package/dist/src/utilities/transitions/index.js +2 -0
- package/dist/src/utilities/transitions/index.js.map +1 -0
- package/dist/src/utilities/typography/constants.d.ts +2401 -0
- package/dist/src/utilities/typography/constants.js +401 -0
- package/dist/src/utilities/typography/constants.js.map +1 -0
- package/dist/src/utilities/typography/index.d.ts +1 -0
- package/dist/src/utilities/typography/index.js +2 -0
- package/dist/src/utilities/typography/index.js.map +1 -0
- package/dist/src/utils.d.ts +18 -0
- package/dist/src/utils.js +282 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/src/watcher.d.ts +15 -0
- package/dist/src/watcher.js +62 -0
- package/dist/src/watcher.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utilities.css +1 -0
- package/index.css +2 -0
- package/package.json +139 -0
- package/reset.css +168 -0
- package/utilities.css +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fluixi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# @fluixi-css/core
|
|
2
|
+
|
|
3
|
+
The Fluixi CSS engine — a fast, CSS-first utility engine. Define your design in
|
|
4
|
+
CSS with `@theme` / `@utility` / `@custom-variant` / `@source`, mark where the
|
|
5
|
+
output goes with `@fluixi;`, and the engine compiles the utility classes your
|
|
6
|
+
templates use into CSS (with source maps).
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @fluixi-css/core
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Most projects use it through a bundler plugin — [`@fluixi-css/vite`](https://www.npmjs.com/package/@fluixi-css/vite)
|
|
13
|
+
or [`@fluixi-css/postcss`](https://www.npmjs.com/package/@fluixi-css/postcss) —
|
|
14
|
+
rather than calling the API directly.
|
|
15
|
+
|
|
16
|
+
## CSS
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
@theme {
|
|
20
|
+
--color-brand: #2563eb;
|
|
21
|
+
--spacing: 0.25rem;
|
|
22
|
+
}
|
|
23
|
+
@source "./src/**/*.{html,tsx}";
|
|
24
|
+
|
|
25
|
+
/* generated tokens + utilities are spliced in here */
|
|
26
|
+
@fluixi;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## API
|
|
30
|
+
|
|
31
|
+
```ts
|
|
32
|
+
import { compile, transform } from '@fluixi-css/core';
|
|
33
|
+
|
|
34
|
+
// Generate only the utilities for a set of classes.
|
|
35
|
+
const { css } = compile('@theme { --spacing: 0.25rem; }', { classes: ['p-4', 'flex'] });
|
|
36
|
+
|
|
37
|
+
// Process a whole stylesheet: author CSS passes through (mapped to source),
|
|
38
|
+
// directives are consumed, and `@fluixi;` is replaced by tokens + utilities.
|
|
39
|
+
const out = transform(cssText, { from: 'app.css', sourceMap: true });
|
|
40
|
+
// out.css, out.map, out.classes, out.sources
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Notes
|
|
44
|
+
|
|
45
|
+
- **Reset:** the engine does **not** inject a reset. Add one explicitly if you
|
|
46
|
+
want it, e.g. `@import "@fluixi-css/core/reset.css";`.
|
|
47
|
+
- **UI tokens:** pass `emitUiTokens: true` to also emit the `--flx-ui-*` bridge
|
|
48
|
+
that drives the Fluixi UI components from your theme.
|
|
49
|
+
|
|
50
|
+
## License
|
|
51
|
+
|
|
52
|
+
MIT
|
package/base.css
ADDED
package/components.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@fluixi components;
|
package/dist/base.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@fluixi components;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fluixi-css/core",
|
|
3
|
+
"description": "Fluixi CSS engine — a fast, CSS-first utility engine (compile, transform, theming, source maps).",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "fluixi",
|
|
6
|
+
"version": "0.1.0-next.0",
|
|
7
|
+
"private": false,
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/fluixi/css.git"
|
|
12
|
+
},
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"registry": "https://registry.npmjs.org/"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"reset.css",
|
|
22
|
+
"base.css",
|
|
23
|
+
"utilities.css",
|
|
24
|
+
"index.css",
|
|
25
|
+
"components.css"
|
|
26
|
+
],
|
|
27
|
+
"main": "./src/index.js",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./src/index.d.ts",
|
|
31
|
+
"import": "./src/index.cjs",
|
|
32
|
+
"style": "./index.css",
|
|
33
|
+
"default": "./src/index.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./plugin": {
|
|
36
|
+
"types": "./src/plugin.d.ts",
|
|
37
|
+
"import": "./src/plugin.mjs",
|
|
38
|
+
"require": "./src/plugin.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./plugin.mjs": {
|
|
41
|
+
"types": "./src/plugin.d.ts",
|
|
42
|
+
"import": "./src/plugin.mjs",
|
|
43
|
+
"default": "./src/plugin.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./plugin.js": {
|
|
46
|
+
"types": "./src/plugin.d.ts",
|
|
47
|
+
"import": "./src/plugin.js",
|
|
48
|
+
"require": "./src/plugin.cjs"
|
|
49
|
+
},
|
|
50
|
+
"./presets-plugins": {
|
|
51
|
+
"types": "./src/presets-plugins.d.ts",
|
|
52
|
+
"import": "./src/presets-plugins.mjs",
|
|
53
|
+
"require": "./src/presets-plugins.cjs"
|
|
54
|
+
},
|
|
55
|
+
"./presets-plugins.mjs": {
|
|
56
|
+
"types": "./src/presets-plugins.d.ts",
|
|
57
|
+
"import": "./src/presets-plugins.mjs",
|
|
58
|
+
"default": "./src/presets-plugins.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./presets-plugins.js": {
|
|
61
|
+
"types": "./src/presets-plugins.d.ts",
|
|
62
|
+
"import": "./src/presets-plugins.js",
|
|
63
|
+
"default": "./src/presets-plugins.js"
|
|
64
|
+
},
|
|
65
|
+
"./css-parser": {
|
|
66
|
+
"types": "./src/css-parser.d.ts",
|
|
67
|
+
"import": "./src/css-parser.mjs",
|
|
68
|
+
"require": "./src/css-parser.cjs"
|
|
69
|
+
},
|
|
70
|
+
"./css-parser.mjs": {
|
|
71
|
+
"types": "./src/css-parser.d.ts",
|
|
72
|
+
"import": "./src/css-parser.mjs",
|
|
73
|
+
"default": "./src/css-parser.mjs"
|
|
74
|
+
},
|
|
75
|
+
"./css-parser.js": {
|
|
76
|
+
"types": "./src/css-parser.d.ts",
|
|
77
|
+
"import": "./src/css-parser.js",
|
|
78
|
+
"default": "./src/css-parser.js"
|
|
79
|
+
},
|
|
80
|
+
"./design-system.js": {
|
|
81
|
+
"types": "./src/design-system.d.ts",
|
|
82
|
+
"import": "./src/design-system.js",
|
|
83
|
+
"default": "./src/design-system.js"
|
|
84
|
+
},
|
|
85
|
+
"./design-system.mjs": {
|
|
86
|
+
"types": "./src/design-system.d.ts",
|
|
87
|
+
"import": "./src/design-system.mjs",
|
|
88
|
+
"default": "./src/design-system.mjs"
|
|
89
|
+
},
|
|
90
|
+
"./design-system": {
|
|
91
|
+
"types": "./src/design-system.d.ts",
|
|
92
|
+
"import": "./src/design-system.mjs",
|
|
93
|
+
"require": "./src/design-system.cjs"
|
|
94
|
+
},
|
|
95
|
+
"./reset.css": "./reset.css",
|
|
96
|
+
"./reset": "./reset.css",
|
|
97
|
+
"./index.css": "./index.css",
|
|
98
|
+
"./index": "./index.css",
|
|
99
|
+
"./base.css": "./base.css",
|
|
100
|
+
"./base": "./base.css",
|
|
101
|
+
"./utilities.css": "./utilities.css",
|
|
102
|
+
"./utilities": "./utilities.css",
|
|
103
|
+
"./components.css": "./components.css",
|
|
104
|
+
"./components": "./components.css"
|
|
105
|
+
},
|
|
106
|
+
"scripts": {
|
|
107
|
+
"build:typings": "cross-env tsc --project ./tsconfig.json --declarationDir dist",
|
|
108
|
+
"build:rollup": "pnpm run build:typings && cross-env NODE_ENV=production INPUT_FILE=src/index.ts,src/extractor.ts,src/constants.ts rollup -c ../configs/rollup.config.mjs",
|
|
109
|
+
"build": "rm -rf dist && pnpm run build:rollup",
|
|
110
|
+
"dev": "rm -rf dist && tsc",
|
|
111
|
+
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
112
|
+
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
113
|
+
"test": "tsc",
|
|
114
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
|
115
|
+
"test:unit": "vitest run",
|
|
116
|
+
"test:unit:watch": "vitest"
|
|
117
|
+
},
|
|
118
|
+
"dependencies": {
|
|
119
|
+
"@alloc/quick-lru": "^5.2.0",
|
|
120
|
+
"css-tree": "^3.1.0",
|
|
121
|
+
"fast-glob": "^3.3.3",
|
|
122
|
+
"lightningcss": "^1.29.3",
|
|
123
|
+
"source-map": "^0.7.4"
|
|
124
|
+
},
|
|
125
|
+
"prettier": {
|
|
126
|
+
"singleQuote": true,
|
|
127
|
+
"arrowParens": "avoid"
|
|
128
|
+
},
|
|
129
|
+
"lint-staged": {
|
|
130
|
+
"*.ts": [
|
|
131
|
+
"eslint --fix",
|
|
132
|
+
"prettier --write"
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
"devDependencies": {
|
|
136
|
+
"@types/node": "^25.6.0",
|
|
137
|
+
"vitest": "^4.1.10"
|
|
138
|
+
}
|
|
139
|
+
}
|
package/dist/reset.css
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
html, :host {
|
|
2
|
+
font-family: Inter, sans-serif;
|
|
3
|
+
line-height: 1.45;
|
|
4
|
+
tab-size: 4;
|
|
5
|
+
text-size-adjust: 100%;
|
|
6
|
+
-webkit-text-size-adjust: 100%;
|
|
7
|
+
font-feature-settings: normal;
|
|
8
|
+
font-variation-settings: normal;
|
|
9
|
+
-webkit-tap-highlight-color: transparent;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h1, h2, h3, h4, h5, h6 {
|
|
13
|
+
font-size: inherit;
|
|
14
|
+
font-weight: inherit;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
ol, ul {
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
list-style: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
img, video {
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
height: auto;
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
svg, canvas, audio, iframe, embed, object {
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
input {
|
|
36
|
+
font: inherit;
|
|
37
|
+
line-height: inherit;
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
button, [role="button"] {
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
font-size: 100%;
|
|
44
|
+
line-height: inherit;
|
|
45
|
+
appearance: button;
|
|
46
|
+
color: inherit;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
-webkit-tap-highlight-color: transparent;
|
|
49
|
+
background-color: #0000;
|
|
50
|
+
padding: 0;
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
button, [role="button"]:focus {
|
|
55
|
+
outline: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
a {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
color: inherit;
|
|
61
|
+
-webkit-text-decoration: inherit;
|
|
62
|
+
text-decoration: inherit;
|
|
63
|
+
-webkit-tap-highlight-color: transparent;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
textarea {
|
|
67
|
+
font: inherit;
|
|
68
|
+
line-height: inherit;
|
|
69
|
+
color: inherit;
|
|
70
|
+
appearance: none;
|
|
71
|
+
width: 100%;
|
|
72
|
+
overflow: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
textarea:focus {
|
|
76
|
+
outline: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
select {
|
|
80
|
+
font: inherit;
|
|
81
|
+
line-height: inherit;
|
|
82
|
+
color: inherit;
|
|
83
|
+
-webkit-appearance: none;
|
|
84
|
+
-moz-appearance: none;
|
|
85
|
+
appearance: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
select:focus {
|
|
89
|
+
outline: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* [type="date"], [type="datetime"], [type="datetime-local"], [type="email"], [type="password"], [type="month"], [type="number"], [type="text"], [type="search"], [type="tel"], [type="time"], [type="url"], [type="week"], [type="checkbox"], [type="radio"] {
|
|
93
|
+
appearance: none;
|
|
94
|
+
width: 100%;
|
|
95
|
+
} */
|
|
96
|
+
|
|
97
|
+
[type="date"]:not(.flx-form-control), [type="datetime"]:not(.flx-form-control), [type="datetime-local"]:not(.flx-form-control), [type="email"]:not(.flx-form-control), [type="password"]:not(.flx-form-control), [type="month"]:not(.flx-form-control), [type="number"]:not(.flx-form-control), [type="text"]:not(.flx-form-control), [type="search"]:not(.flx-form-control), [type="tel"]:not(.flx-form-control), [type="time"]:not(.flx-form-control), [type="url"]:not(.flx-form-control), [type="week"]:not(.flx-form-control), [type="checkbox"]:not(.flx-form-control), [type="radio"]:not(.flx-form-control) {
|
|
98
|
+
outline: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
* {
|
|
102
|
+
margin: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Reset borders */
|
|
106
|
+
::before, ::after, *:where(:not([class*="flx-"], .flx-card, .flx-card-header, .flx-card-body, .flx-card-footer, .flx-dialog, .flx-dialog-header, .flx-dialog-body, .flx-dialog-footer, .flx-dropdown, .flx-dropdown-header, .flx-dropdown-body, .flx-dropdown-footer, .flx-dropdown-item, .flx-list, .flx-list-header, .flx-list-body, .flx-list-footer, .flx-btn, .flx-grid, .flx-grid-cell, .flx-grid-row, .flx-paginator, .flx-alert, .flx-table, input.flx-form-control, .flx-dropdown-menu)) {
|
|
107
|
+
/* border-color: #e5e7eb; */
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
border: 0 solid;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
::-moz-placeholder {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
*, ::before, ::after, ::backdrop {
|
|
117
|
+
--flx-border-spacing-x: 0;
|
|
118
|
+
--flx-border-spacing-y: 0;
|
|
119
|
+
--flx-translate-x: 0;
|
|
120
|
+
--flx-translate-y: 0;
|
|
121
|
+
--flx-rotate: 0;
|
|
122
|
+
--flx-skew-x: 0;
|
|
123
|
+
--flx-skew-y: 0;
|
|
124
|
+
--flx-scale-x: 1;
|
|
125
|
+
--flx-scale-y: 1;
|
|
126
|
+
--flx-pan-x: ;
|
|
127
|
+
--flx-pan-y: ;
|
|
128
|
+
--flx-pinch-zoom: ;
|
|
129
|
+
--flx-scroll-snap-strictness: proximity;
|
|
130
|
+
--flx-gradient-from-position: ;
|
|
131
|
+
--flx-gradient-via-position: ;
|
|
132
|
+
--flx-gradient-to-position: ;
|
|
133
|
+
--flx-ordinal: ;
|
|
134
|
+
--flx-slashed-zero: ;
|
|
135
|
+
--flx-numeric-figure: ;
|
|
136
|
+
--flx-numeric-spacing: ;
|
|
137
|
+
--flx-numeric-fraction: ;
|
|
138
|
+
--flx-ring-inset: ;
|
|
139
|
+
--flx-ring-offset-width: 0px;
|
|
140
|
+
--flx-ring-offset-color: #fff;
|
|
141
|
+
--flx-ring-color: #3b82f680;
|
|
142
|
+
--flx-ring-offset-shadow: 0 0 #0000;
|
|
143
|
+
--flx-ring-shadow: 0 0 #0000;
|
|
144
|
+
--flx-shadow: 0 0 #0000;
|
|
145
|
+
--flx-shadow-colored: 0 0 #0000;
|
|
146
|
+
--flx-blur: ;
|
|
147
|
+
--flx-brightness: ;
|
|
148
|
+
--flx-contrast: ;
|
|
149
|
+
--flx-grayscale: ;
|
|
150
|
+
--flx-hue-rotate: ;
|
|
151
|
+
--flx-invert: ;
|
|
152
|
+
--flx-saturate: ;
|
|
153
|
+
--flx-sepia: ;
|
|
154
|
+
--flx-drop-shadow: ;
|
|
155
|
+
--flx-backdrop-blur: ;
|
|
156
|
+
--flx-backdrop-brightness: ;
|
|
157
|
+
--flx-backdrop-contrast: ;
|
|
158
|
+
--flx-backdrop-grayscale: ;
|
|
159
|
+
--flx-backdrop-hue-rotate: ;
|
|
160
|
+
--flx-backdrop-invert: ;
|
|
161
|
+
--flx-backdrop-opacity: ;
|
|
162
|
+
--flx-backdrop-saturate: ;
|
|
163
|
+
--flx-backdrop-sepia: ;
|
|
164
|
+
--flx-contain-size: ;
|
|
165
|
+
--flx-contain-layout: ;
|
|
166
|
+
--flx-contain-paint: ;
|
|
167
|
+
--flx-contain-style: ;
|
|
168
|
+
}
|