@spark-ui/theme-utils 2.16.0 → 2.17.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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.17.0](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.16.1...@spark-ui/theme-utils@2.17.0) (2023-06-12)
7
+
8
+ ### Features
9
+
10
+ - **theme-utils:** monospaced font added ([f228e56](https://github.com/adevinta/spark/commit/f228e561dbcd1dac4c8d73a0f289b566dc9c7143))
11
+
12
+ ## [2.16.1](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.16.0...@spark-ui/theme-utils@2.16.1) (2023-05-26)
13
+
14
+ **Note:** Version bump only for package @spark-ui/theme-utils
15
+
6
16
  # [2.16.0](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.15.4...@spark-ui/theme-utils@2.16.0) (2023-05-24)
7
17
 
8
18
  ### Features
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("deepmerge"),e={borderRadius:{none:"0px",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"1.5rem",full:"9999px"},borderWidth:{none:"0px",sm:"1px",md:"2px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.2)",DEFAULT:"0 4px 8px 0 rgb(0 0 0 / 0.2)",md:"0 6px 12px 0 rgb(0 0 0 / 0.2)",lg:"0 8px 16px 0 rgb(0 0 0 / 0.2)",xl:"0 12px 24px 0 rgb(0 0 0 / 0.2)",none:"none"},colors:{primary:"#2118C9",onPrimary:"#FFFFFF",primaryHovered:"#5952D6",primaryPressed:"#5952D6",primaryDisabled:"#F4F4FC",primaryFocused:"#5952D6",primaryContainer:"#E2E1F8",onPrimaryContainer:"#140E79",primaryContainerHovered:"#F4F4FC",primaryContainerPressed:"#F4F4FC",primaryContainerDisabled:"#F4F4FC",primaryContainerFocused:"#F4F4FC",primaryVariant:"#140E79",onPrimaryVariant:"#FFFFFF",primaryVariantHovered:"#191297",primaryVariantPressed:"#191297",primaryVariantDisabled:"#F4F4FC",primaryVariantFocused:"#191297",secondary:"#FD398A",onSecondary:"#FFFFFF",secondaryHovered:"#FE6BA7",secondaryPressed:"#FE6BA7",secondaryDisabled:"#FFF5F9",secondaryFocused:"#FE6BA7",secondaryContainer:"#FFE1ED",onSecondaryContainer:"#982253",secondaryContainerHovered:"#FFF5F9",secondaryContainerPressed:"#FFF5F9",secondaryContainerDisabled:"#FFF5F9",secondaryContainerFocused:"#FFF5F9",secondaryVariant:"#982253",onSecondaryVariant:"#FFFFFF",secondaryVariantHovered:"#CA2E6E",secondaryVariantPressed:"#CA2E6E",secondaryVariantDisabled:"#FFF5F9",secondaryVariantFocused:"#CA2E6E",success:"#31A56B",onSuccess:"#FFFFFF",successHovered:"#64BC90",successPressed:"#64BC90",successDisabled:"#F5FBF8",successFocused:"#64BC90",successContainer:"#E0F2E9",onSuccessContainer:"#1D6340",successContainerHovered:"#F5FBF8",successContainerPressed:"#F5FBF8",successContainerDisabled:"#F5FBF8",successContainerFocused:"#F5FBF8",alert:"#F4BF48",onAlert:"#000000",alertHovered:"#F7CF76",alertPressed:"#F7CF76",alertDisabled:"#FFFCF6",alertFocused:"#F7CF76",alertContainer:"#FDF5E4",onAlertContainer:"#92732B",alertContainerHovered:"#FFFCF6",alertContainerPressed:"#FFFCF6",alertContainerDisabled:"#FFFCF6",alertContainerFocused:"#FFFCF6",error:"#F65651",onError:"#FFFFFF",errorHovered:"#F8807D",errorPressed:"#F8807D",errorDisabled:"#FFF7F6",errorFocused:"#F8807D",errorContainer:"#FEE6E5",onErrorContainer:"#943431",errorContainerHovered:"#FFF7F6",errorContainerPressed:"#FFF7F6",errorContainerDisabled:"#FFF7F6",errorContainerFocused:"#FFF7F6",info:"#07A0B8",onInfo:"#FFFFFF",infoHovered:"#45B8CA",infoPressed:"#45B8CA",infoDisabled:"#F3FAFC",infoFocused:"#45B8CA",infoContainer:"#DAF1F4",onInfoContainer:"#04606E",infoContainerHovered:"#F3FAFC",infoContainerPressed:"#F3FAFC",infoContainerDisabled:"#F3FAFC",infoContainerFocused:"#F3FAFC",neutral:"#7B7986",onNeutral:"#FFFFFF",neutralHovered:"#9C9BA4",neutralPressed:"#9C9BA4",neutralDisabled:"#F8F8F9",neutralFocused:"#9C9BA4",neutralContainer:"#EBEBED",onNeutralContainer:"#4A4950",neutralContainerHovered:"#F8F8F9",neutralContainerPressed:"#F8F8F9",neutralContainerDisabled:"#F8F8F9",neutralContainerFocused:"#F8F8F9",background:"#FFFFFF",onBackground:"#000000",backgroundVariant:"#F8F8F9",onBackgroundVariant:"#000000",surface:"#FFFFFF",onSurface:"#000000",surfaceHovered:"#F4F4FC",surfacePressed:"#F4F4FC",surfaceDisabled:"#F8F8F9",surfaceFocused:"#F4F4FC",surfaceInverse:"#252428",onSurfaceInverse:"#FFFFFF",surfaceInverseHovered:"#313036",surfaceInversePressed:"#313036",surfaceInverseDisabled:"#F8F8F9",surfaceInverseFocused:"#313036",outline:"#D1D0D5",outlineHigh:"#000000",outlineHovered:"#2118C9",outlinePressed:"#2118C9",outlineDisabled:"#F8F8F9",outlineFocused:"#D1D0D5",overlay:"#313036",onOverlay:"#FFFFFF"},fontFamily:{sans:'"Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'},fontSize:{display1:{fontSize:"2.5rem",lineHeight:"3.5rem",fontWeight:"700"},display1Expanded:{fontSize:"3rem",lineHeight:"4rem",fontWeight:"700"},display2:{fontSize:"2rem",lineHeight:"2.75rem",fontWeight:"700"},display2Expanded:{fontSize:"2.5rem",lineHeight:"3.5rem",fontWeight:"700"},display3:{fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700"},display3Expanded:{fontSize:"2rem",lineHeight:"2.75rem",fontWeight:"700"},headline1:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},headline1Expanded:{fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700"},headline2:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},headline2Expanded:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},subhead:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},subheadExpanded:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},body1:{fontSize:"1rem",lineHeight:"1.5rem"},body2:{fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontSize:"0.75rem",lineHeight:"1rem"},small:{fontSize:"0.625rem",lineHeight:"0.875rem"},body1Link:{fontSize:"1rem",lineHeight:"1.5rem"},body2Link:{fontSize:"0.875rem",lineHeight:"1.125rem"},captionLink:{fontSize:"0.75rem",lineHeight:"1rem"},callout:{fontSize:"1rem",lineHeight:"1.5rem"}},fontWeight:{regular:"400",medium:"500",semiBold:"600",bold:"700"},opacity:{0:"0",none:"1",dim1:"0.72",dim2:"0.56",dim3:"0.40",dim4:"0.16",dim5:"0.08"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},spacing:{auto:"auto",none:"0px",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"2.5rem"},zIndex:{hide:"-1",base:"0",raised:"1",dropdown:"1000",sticky:"1100",overlay:"1300",modal:"1400",popover:"1500",skipLink:"1600",toast:"1700",tooltip:"1800"}};function r(n,o=e){return a(o,n)}const F=r({colors:{primary:"#7583FF",onPrimary:"#000000",primaryHovered:"#5952D6",primaryPressed:"#5952D6",primaryDisabled:"#080632",primaryFocused:"#5952D6",primaryContainer:"#0D0A50",onPrimaryContainer:"#B1AEEC",primaryContainerHovered:"#080632",primaryContainerPressed:"#080632",primaryContainerDisabled:"#080632",primaryContainerFocused:"#080632",primaryVariant:"#B1AEEC",onPrimaryVariant:"#000000",primaryVariantHovered:"#8580E1",primaryVariantPressed:"#8580E1",primaryVariantDisabled:"#080632",primaryVariantFocused:"#8580E1",secondary:"#FE6BA7",onSecondary:"#000000",secondaryHovered:"#FD398A",secondaryPressed:"#FD398A",secondaryDisabled:"#3F0E22",secondaryFocused:"#FD398A",secondaryContainer:"#651737",onSecondaryContainer:"#FEBAD6",secondaryContainerHovered:"#3F0E22",secondaryContainerPressed:"#3F0E22",secondaryContainerDisabled:"#3F0E22",secondaryContainerFocused:"#3F0E22",secondaryVariant:"#FE92BF",onSecondaryVariant:"#000000",secondaryVariantHovered:"#FE6BA7",secondaryVariantPressed:"#FE6BA7",secondaryVariantDisabled:"#3F0E22",secondaryVariantFocused:"#FE6BA7",success:"#64BC90",onSuccess:"#000000",successHovered:"#31A56B",successPressed:"#31A56B",successDisabled:"#14422B",successFocused:"#31A56B",successContainer:"#14422B",onSuccessContainer:"#B7DFCB",successContainerHovered:"#14422B",successContainerPressed:"#14422B",successContainerDisabled:"#14422B",successContainerFocused:"#14422B",alert:"#F7CF76",onAlert:"#000000",alertHovered:"#F4BF48",alertPressed:"#F4BF48",alertDisabled:"#3D3012",alertFocused:"#F4BF48",alertContainer:"#624C1D",onAlertContainer:"#FBE9BF",alertContainerHovered:"#3D3012",alertContainerPressed:"#3D3012",alertContainerDisabled:"#3D3012",alertContainerFocused:"#3D3012",error:"#F8807D",onError:"#000000",errorHovered:"#F65651",errorPressed:"#F65651",errorDisabled:"#3E1514",errorFocused:"#F65651",errorContainer:"#622220",onErrorContainer:"#FCC4C2",errorContainerHovered:"#3E1514",errorContainerPressed:"#3E1514",errorContainerDisabled:"#3E1514",errorContainerFocused:"#3E1514",info:"#45B8CA",onInfo:"#000000",infoHovered:"#07A0B8",infoPressed:"#07A0B8",infoDisabled:"#02282E",infoFocused:"#07A0B8",infoContainer:"#03404A",onInfoContainer:"#A8DEE6",infoContainerHovered:"#02282E",infoContainerPressed:"#02282E",infoContainerDisabled:"#02282E",infoContainerFocused:"#02282E",neutral:"#9C9BA4",onNeutral:"#000000",neutralHovered:"#5C5B64",neutralPressed:"#5C5B64",neutralDisabled:"#252428",neutralFocused:"#5C5B64",neutralContainer:"#313036",onNeutralContainer:"#D1D0D5",neutralContainerHovered:"#252428",neutralContainerPressed:"#252428",neutralContainerDisabled:"#252428",neutralContainerFocused:"#252428",background:"#000000",onBackground:"#FFFFFF",backgroundVariant:"#252428",onBackgroundVariant:"#FFFFFF",surface:"#000000",onSurface:"#FFFFFF",surfaceHovered:"#080632",surfacePressed:"#080632",surfaceDisabled:"#252428",surfaceFocused:"#080632",surfaceInverse:"#F8F8F9",onSurfaceInverse:"#000000",surfaceInverseHovered:"#EBEBED",surfaceInversePressed:"#EBEBED",surfaceInverseDisabled:"#252428",surfaceInverseFocused:"#EBEBED",outline:"#4A4950",outlineHigh:"#FFFFFF",outlineHovered:"#7583FF",outlinePressed:"#7583FF",outlineDisabled:"#252428",outlineFocused:"#4A4950",overlay:"#313036",onOverlay:"#FFFFFF"}});exports.createTheme=r,exports.defaultTheme=e,exports.defaultThemeDark=F;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("deepmerge"),e={borderRadius:{none:"0px",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"1.5rem",full:"9999px"},borderWidth:{none:"0px",sm:"1px",md:"2px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.2)",DEFAULT:"0 4px 8px 0 rgb(0 0 0 / 0.2)",md:"0 6px 12px 0 rgb(0 0 0 / 0.2)",lg:"0 8px 16px 0 rgb(0 0 0 / 0.2)",xl:"0 12px 24px 0 rgb(0 0 0 / 0.2)",none:"none"},colors:{primary:"#2118C9",onPrimary:"#FFFFFF",primaryHovered:"#5952D6",primaryPressed:"#5952D6",primaryDisabled:"#F4F4FC",primaryFocused:"#5952D6",primaryContainer:"#E2E1F8",onPrimaryContainer:"#140E79",primaryContainerHovered:"#F4F4FC",primaryContainerPressed:"#F4F4FC",primaryContainerDisabled:"#F4F4FC",primaryContainerFocused:"#F4F4FC",primaryVariant:"#140E79",onPrimaryVariant:"#FFFFFF",primaryVariantHovered:"#191297",primaryVariantPressed:"#191297",primaryVariantDisabled:"#F4F4FC",primaryVariantFocused:"#191297",secondary:"#FD398A",onSecondary:"#FFFFFF",secondaryHovered:"#FE6BA7",secondaryPressed:"#FE6BA7",secondaryDisabled:"#FFF5F9",secondaryFocused:"#FE6BA7",secondaryContainer:"#FFE1ED",onSecondaryContainer:"#982253",secondaryContainerHovered:"#FFF5F9",secondaryContainerPressed:"#FFF5F9",secondaryContainerDisabled:"#FFF5F9",secondaryContainerFocused:"#FFF5F9",secondaryVariant:"#982253",onSecondaryVariant:"#FFFFFF",secondaryVariantHovered:"#CA2E6E",secondaryVariantPressed:"#CA2E6E",secondaryVariantDisabled:"#FFF5F9",secondaryVariantFocused:"#CA2E6E",success:"#31A56B",onSuccess:"#FFFFFF",successHovered:"#64BC90",successPressed:"#64BC90",successDisabled:"#F5FBF8",successFocused:"#64BC90",successContainer:"#E0F2E9",onSuccessContainer:"#1D6340",successContainerHovered:"#F5FBF8",successContainerPressed:"#F5FBF8",successContainerDisabled:"#F5FBF8",successContainerFocused:"#F5FBF8",alert:"#F4BF48",onAlert:"#000000",alertHovered:"#F7CF76",alertPressed:"#F7CF76",alertDisabled:"#FFFCF6",alertFocused:"#F7CF76",alertContainer:"#FDF5E4",onAlertContainer:"#92732B",alertContainerHovered:"#FFFCF6",alertContainerPressed:"#FFFCF6",alertContainerDisabled:"#FFFCF6",alertContainerFocused:"#FFFCF6",error:"#F65651",onError:"#FFFFFF",errorHovered:"#F8807D",errorPressed:"#F8807D",errorDisabled:"#FFF7F6",errorFocused:"#F8807D",errorContainer:"#FEE6E5",onErrorContainer:"#943431",errorContainerHovered:"#FFF7F6",errorContainerPressed:"#FFF7F6",errorContainerDisabled:"#FFF7F6",errorContainerFocused:"#FFF7F6",info:"#07A0B8",onInfo:"#FFFFFF",infoHovered:"#45B8CA",infoPressed:"#45B8CA",infoDisabled:"#F3FAFC",infoFocused:"#45B8CA",infoContainer:"#DAF1F4",onInfoContainer:"#04606E",infoContainerHovered:"#F3FAFC",infoContainerPressed:"#F3FAFC",infoContainerDisabled:"#F3FAFC",infoContainerFocused:"#F3FAFC",neutral:"#7B7986",onNeutral:"#FFFFFF",neutralHovered:"#9C9BA4",neutralPressed:"#9C9BA4",neutralDisabled:"#F8F8F9",neutralFocused:"#9C9BA4",neutralContainer:"#EBEBED",onNeutralContainer:"#4A4950",neutralContainerHovered:"#F8F8F9",neutralContainerPressed:"#F8F8F9",neutralContainerDisabled:"#F8F8F9",neutralContainerFocused:"#F8F8F9",background:"#FFFFFF",onBackground:"#000000",backgroundVariant:"#F8F8F9",onBackgroundVariant:"#000000",surface:"#FFFFFF",onSurface:"#000000",surfaceHovered:"#F4F4FC",surfacePressed:"#F4F4FC",surfaceDisabled:"#F8F8F9",surfaceFocused:"#F4F4FC",surfaceInverse:"#252428",onSurfaceInverse:"#FFFFFF",surfaceInverseHovered:"#313036",surfaceInversePressed:"#313036",surfaceInverseDisabled:"#F8F8F9",surfaceInverseFocused:"#313036",outline:"#D1D0D5",outlineHigh:"#000000",outlineHovered:"#2118C9",outlinePressed:"#2118C9",outlineDisabled:"#F8F8F9",outlineFocused:"#D1D0D5",overlay:"#313036",onOverlay:"#FFFFFF"},fontFamily:{sans:'"Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',mono:'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{display1:{fontSize:"2.5rem",lineHeight:"3.5rem",fontWeight:"700"},display1Expanded:{fontSize:"3rem",lineHeight:"4rem",fontWeight:"700"},display2:{fontSize:"2rem",lineHeight:"2.75rem",fontWeight:"700"},display2Expanded:{fontSize:"2.5rem",lineHeight:"3.5rem",fontWeight:"700"},display3:{fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700"},display3Expanded:{fontSize:"2rem",lineHeight:"2.75rem",fontWeight:"700"},headline1:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},headline1Expanded:{fontSize:"1.5rem",lineHeight:"2rem",fontWeight:"700"},headline2:{fontSize:"1.125rem",lineHeight:"1.5rem",fontWeight:"700"},headline2Expanded:{fontSize:"1.25rem",lineHeight:"1.75rem",fontWeight:"700"},subhead:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},subheadExpanded:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"700"},body1:{fontSize:"1rem",lineHeight:"1.5rem"},body2:{fontSize:"0.875rem",lineHeight:"1.25rem"},caption:{fontSize:"0.75rem",lineHeight:"1rem"},small:{fontSize:"0.625rem",lineHeight:"0.875rem"},body1Link:{fontSize:"1rem",lineHeight:"1.5rem"},body2Link:{fontSize:"0.875rem",lineHeight:"1.125rem"},captionLink:{fontSize:"0.75rem",lineHeight:"1rem"},callout:{fontSize:"1rem",lineHeight:"1.5rem"}},fontWeight:{regular:"400",medium:"500",semiBold:"600",bold:"700"},opacity:{0:"0",none:"1",dim1:"0.72",dim2:"0.56",dim3:"0.40",dim4:"0.16",dim5:"0.08"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},spacing:{auto:"auto",none:"0px",sm:"0.25rem",md:"0.5rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"2.5rem"},zIndex:{hide:"-1",base:"0",raised:"1",dropdown:"1000",sticky:"1100",overlay:"1300",modal:"1400",popover:"1500",skipLink:"1600",toast:"1700",tooltip:"1800"}};function r(n,o=e){return a(o,n)}const F=r({colors:{primary:"#7583FF",onPrimary:"#000000",primaryHovered:"#5952D6",primaryPressed:"#5952D6",primaryDisabled:"#080632",primaryFocused:"#5952D6",primaryContainer:"#0D0A50",onPrimaryContainer:"#B1AEEC",primaryContainerHovered:"#080632",primaryContainerPressed:"#080632",primaryContainerDisabled:"#080632",primaryContainerFocused:"#080632",primaryVariant:"#B1AEEC",onPrimaryVariant:"#000000",primaryVariantHovered:"#8580E1",primaryVariantPressed:"#8580E1",primaryVariantDisabled:"#080632",primaryVariantFocused:"#8580E1",secondary:"#FE6BA7",onSecondary:"#000000",secondaryHovered:"#FD398A",secondaryPressed:"#FD398A",secondaryDisabled:"#3F0E22",secondaryFocused:"#FD398A",secondaryContainer:"#651737",onSecondaryContainer:"#FEBAD6",secondaryContainerHovered:"#3F0E22",secondaryContainerPressed:"#3F0E22",secondaryContainerDisabled:"#3F0E22",secondaryContainerFocused:"#3F0E22",secondaryVariant:"#FE92BF",onSecondaryVariant:"#000000",secondaryVariantHovered:"#FE6BA7",secondaryVariantPressed:"#FE6BA7",secondaryVariantDisabled:"#3F0E22",secondaryVariantFocused:"#FE6BA7",success:"#64BC90",onSuccess:"#000000",successHovered:"#31A56B",successPressed:"#31A56B",successDisabled:"#14422B",successFocused:"#31A56B",successContainer:"#14422B",onSuccessContainer:"#B7DFCB",successContainerHovered:"#14422B",successContainerPressed:"#14422B",successContainerDisabled:"#14422B",successContainerFocused:"#14422B",alert:"#F7CF76",onAlert:"#000000",alertHovered:"#F4BF48",alertPressed:"#F4BF48",alertDisabled:"#3D3012",alertFocused:"#F4BF48",alertContainer:"#624C1D",onAlertContainer:"#FBE9BF",alertContainerHovered:"#3D3012",alertContainerPressed:"#3D3012",alertContainerDisabled:"#3D3012",alertContainerFocused:"#3D3012",error:"#F8807D",onError:"#000000",errorHovered:"#F65651",errorPressed:"#F65651",errorDisabled:"#3E1514",errorFocused:"#F65651",errorContainer:"#622220",onErrorContainer:"#FCC4C2",errorContainerHovered:"#3E1514",errorContainerPressed:"#3E1514",errorContainerDisabled:"#3E1514",errorContainerFocused:"#3E1514",info:"#45B8CA",onInfo:"#000000",infoHovered:"#07A0B8",infoPressed:"#07A0B8",infoDisabled:"#02282E",infoFocused:"#07A0B8",infoContainer:"#03404A",onInfoContainer:"#A8DEE6",infoContainerHovered:"#02282E",infoContainerPressed:"#02282E",infoContainerDisabled:"#02282E",infoContainerFocused:"#02282E",neutral:"#9C9BA4",onNeutral:"#000000",neutralHovered:"#5C5B64",neutralPressed:"#5C5B64",neutralDisabled:"#252428",neutralFocused:"#5C5B64",neutralContainer:"#313036",onNeutralContainer:"#D1D0D5",neutralContainerHovered:"#252428",neutralContainerPressed:"#252428",neutralContainerDisabled:"#252428",neutralContainerFocused:"#252428",background:"#000000",onBackground:"#FFFFFF",backgroundVariant:"#252428",onBackgroundVariant:"#FFFFFF",surface:"#000000",onSurface:"#FFFFFF",surfaceHovered:"#080632",surfacePressed:"#080632",surfaceDisabled:"#252428",surfaceFocused:"#080632",surfaceInverse:"#F8F8F9",onSurfaceInverse:"#000000",surfaceInverseHovered:"#EBEBED",surfaceInversePressed:"#EBEBED",surfaceInverseDisabled:"#252428",surfaceInverseFocused:"#EBEBED",outline:"#4A4950",outlineHigh:"#FFFFFF",outlineHovered:"#7583FF",outlinePressed:"#7583FF",outlineDisabled:"#252428",outlineFocused:"#4A4950",overlay:"#313036",onOverlay:"#FFFFFF"}});exports.createTheme=r,exports.defaultTheme=e,exports.defaultThemeDark=F;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import n from "deepmerge";
2
- const o = { borderRadius: { none: "0px", sm: "0.25rem", md: "0.5rem", lg: "1rem", xl: "1.5rem", full: "9999px" }, borderWidth: { none: "0px", sm: "1px", md: "2px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.2)", DEFAULT: "0 4px 8px 0 rgb(0 0 0 / 0.2)", md: "0 6px 12px 0 rgb(0 0 0 / 0.2)", lg: "0 8px 16px 0 rgb(0 0 0 / 0.2)", xl: "0 12px 24px 0 rgb(0 0 0 / 0.2)", none: "none" }, colors: { primary: "#2118C9", onPrimary: "#FFFFFF", primaryHovered: "#5952D6", primaryPressed: "#5952D6", primaryDisabled: "#F4F4FC", primaryFocused: "#5952D6", primaryContainer: "#E2E1F8", onPrimaryContainer: "#140E79", primaryContainerHovered: "#F4F4FC", primaryContainerPressed: "#F4F4FC", primaryContainerDisabled: "#F4F4FC", primaryContainerFocused: "#F4F4FC", primaryVariant: "#140E79", onPrimaryVariant: "#FFFFFF", primaryVariantHovered: "#191297", primaryVariantPressed: "#191297", primaryVariantDisabled: "#F4F4FC", primaryVariantFocused: "#191297", secondary: "#FD398A", onSecondary: "#FFFFFF", secondaryHovered: "#FE6BA7", secondaryPressed: "#FE6BA7", secondaryDisabled: "#FFF5F9", secondaryFocused: "#FE6BA7", secondaryContainer: "#FFE1ED", onSecondaryContainer: "#982253", secondaryContainerHovered: "#FFF5F9", secondaryContainerPressed: "#FFF5F9", secondaryContainerDisabled: "#FFF5F9", secondaryContainerFocused: "#FFF5F9", secondaryVariant: "#982253", onSecondaryVariant: "#FFFFFF", secondaryVariantHovered: "#CA2E6E", secondaryVariantPressed: "#CA2E6E", secondaryVariantDisabled: "#FFF5F9", secondaryVariantFocused: "#CA2E6E", success: "#31A56B", onSuccess: "#FFFFFF", successHovered: "#64BC90", successPressed: "#64BC90", successDisabled: "#F5FBF8", successFocused: "#64BC90", successContainer: "#E0F2E9", onSuccessContainer: "#1D6340", successContainerHovered: "#F5FBF8", successContainerPressed: "#F5FBF8", successContainerDisabled: "#F5FBF8", successContainerFocused: "#F5FBF8", alert: "#F4BF48", onAlert: "#000000", alertHovered: "#F7CF76", alertPressed: "#F7CF76", alertDisabled: "#FFFCF6", alertFocused: "#F7CF76", alertContainer: "#FDF5E4", onAlertContainer: "#92732B", alertContainerHovered: "#FFFCF6", alertContainerPressed: "#FFFCF6", alertContainerDisabled: "#FFFCF6", alertContainerFocused: "#FFFCF6", error: "#F65651", onError: "#FFFFFF", errorHovered: "#F8807D", errorPressed: "#F8807D", errorDisabled: "#FFF7F6", errorFocused: "#F8807D", errorContainer: "#FEE6E5", onErrorContainer: "#943431", errorContainerHovered: "#FFF7F6", errorContainerPressed: "#FFF7F6", errorContainerDisabled: "#FFF7F6", errorContainerFocused: "#FFF7F6", info: "#07A0B8", onInfo: "#FFFFFF", infoHovered: "#45B8CA", infoPressed: "#45B8CA", infoDisabled: "#F3FAFC", infoFocused: "#45B8CA", infoContainer: "#DAF1F4", onInfoContainer: "#04606E", infoContainerHovered: "#F3FAFC", infoContainerPressed: "#F3FAFC", infoContainerDisabled: "#F3FAFC", infoContainerFocused: "#F3FAFC", neutral: "#7B7986", onNeutral: "#FFFFFF", neutralHovered: "#9C9BA4", neutralPressed: "#9C9BA4", neutralDisabled: "#F8F8F9", neutralFocused: "#9C9BA4", neutralContainer: "#EBEBED", onNeutralContainer: "#4A4950", neutralContainerHovered: "#F8F8F9", neutralContainerPressed: "#F8F8F9", neutralContainerDisabled: "#F8F8F9", neutralContainerFocused: "#F8F8F9", background: "#FFFFFF", onBackground: "#000000", backgroundVariant: "#F8F8F9", onBackgroundVariant: "#000000", surface: "#FFFFFF", onSurface: "#000000", surfaceHovered: "#F4F4FC", surfacePressed: "#F4F4FC", surfaceDisabled: "#F8F8F9", surfaceFocused: "#F4F4FC", surfaceInverse: "#252428", onSurfaceInverse: "#FFFFFF", surfaceInverseHovered: "#313036", surfaceInversePressed: "#313036", surfaceInverseDisabled: "#F8F8F9", surfaceInverseFocused: "#313036", outline: "#D1D0D5", outlineHigh: "#000000", outlineHovered: "#2118C9", outlinePressed: "#2118C9", outlineDisabled: "#F8F8F9", outlineFocused: "#D1D0D5", overlay: "#313036", onOverlay: "#FFFFFF" }, fontFamily: { sans: '"Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"' }, fontSize: { display1: { fontSize: "2.5rem", lineHeight: "3.5rem", fontWeight: "700" }, display1Expanded: { fontSize: "3rem", lineHeight: "4rem", fontWeight: "700" }, display2: { fontSize: "2rem", lineHeight: "2.75rem", fontWeight: "700" }, display2Expanded: { fontSize: "2.5rem", lineHeight: "3.5rem", fontWeight: "700" }, display3: { fontSize: "1.5rem", lineHeight: "2rem", fontWeight: "700" }, display3Expanded: { fontSize: "2rem", lineHeight: "2.75rem", fontWeight: "700" }, headline1: { fontSize: "1.25rem", lineHeight: "1.75rem", fontWeight: "700" }, headline1Expanded: { fontSize: "1.5rem", lineHeight: "2rem", fontWeight: "700" }, headline2: { fontSize: "1.125rem", lineHeight: "1.5rem", fontWeight: "700" }, headline2Expanded: { fontSize: "1.25rem", lineHeight: "1.75rem", fontWeight: "700" }, subhead: { fontSize: "1rem", lineHeight: "1.5rem", fontWeight: "700" }, subheadExpanded: { fontSize: "1rem", lineHeight: "1.5rem", fontWeight: "700" }, body1: { fontSize: "1rem", lineHeight: "1.5rem" }, body2: { fontSize: "0.875rem", lineHeight: "1.25rem" }, caption: { fontSize: "0.75rem", lineHeight: "1rem" }, small: { fontSize: "0.625rem", lineHeight: "0.875rem" }, body1Link: { fontSize: "1rem", lineHeight: "1.5rem" }, body2Link: { fontSize: "0.875rem", lineHeight: "1.125rem" }, captionLink: { fontSize: "0.75rem", lineHeight: "1rem" }, callout: { fontSize: "1rem", lineHeight: "1.5rem" } }, fontWeight: { regular: "400", medium: "500", semiBold: "600", bold: "700" }, opacity: { 0: "0", none: "1", dim1: "0.72", dim2: "0.56", dim3: "0.40", dim4: "0.16", dim5: "0.08" }, screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px" }, spacing: { auto: "auto", none: "0px", sm: "0.25rem", md: "0.5rem", lg: "1rem", xl: "1.5rem", "2xl": "2rem", "3xl": "2.5rem" }, zIndex: { hide: "-1", base: "0", raised: "1", dropdown: "1000", sticky: "1100", overlay: "1300", modal: "1400", popover: "1500", skipLink: "1600", toast: "1700", tooltip: "1800" } };
2
+ const o = { borderRadius: { none: "0px", sm: "0.25rem", md: "0.5rem", lg: "1rem", xl: "1.5rem", full: "9999px" }, borderWidth: { none: "0px", sm: "1px", md: "2px" }, boxShadow: { sm: "0 1px 2px 0 rgb(0 0 0 / 0.2)", DEFAULT: "0 4px 8px 0 rgb(0 0 0 / 0.2)", md: "0 6px 12px 0 rgb(0 0 0 / 0.2)", lg: "0 8px 16px 0 rgb(0 0 0 / 0.2)", xl: "0 12px 24px 0 rgb(0 0 0 / 0.2)", none: "none" }, colors: { primary: "#2118C9", onPrimary: "#FFFFFF", primaryHovered: "#5952D6", primaryPressed: "#5952D6", primaryDisabled: "#F4F4FC", primaryFocused: "#5952D6", primaryContainer: "#E2E1F8", onPrimaryContainer: "#140E79", primaryContainerHovered: "#F4F4FC", primaryContainerPressed: "#F4F4FC", primaryContainerDisabled: "#F4F4FC", primaryContainerFocused: "#F4F4FC", primaryVariant: "#140E79", onPrimaryVariant: "#FFFFFF", primaryVariantHovered: "#191297", primaryVariantPressed: "#191297", primaryVariantDisabled: "#F4F4FC", primaryVariantFocused: "#191297", secondary: "#FD398A", onSecondary: "#FFFFFF", secondaryHovered: "#FE6BA7", secondaryPressed: "#FE6BA7", secondaryDisabled: "#FFF5F9", secondaryFocused: "#FE6BA7", secondaryContainer: "#FFE1ED", onSecondaryContainer: "#982253", secondaryContainerHovered: "#FFF5F9", secondaryContainerPressed: "#FFF5F9", secondaryContainerDisabled: "#FFF5F9", secondaryContainerFocused: "#FFF5F9", secondaryVariant: "#982253", onSecondaryVariant: "#FFFFFF", secondaryVariantHovered: "#CA2E6E", secondaryVariantPressed: "#CA2E6E", secondaryVariantDisabled: "#FFF5F9", secondaryVariantFocused: "#CA2E6E", success: "#31A56B", onSuccess: "#FFFFFF", successHovered: "#64BC90", successPressed: "#64BC90", successDisabled: "#F5FBF8", successFocused: "#64BC90", successContainer: "#E0F2E9", onSuccessContainer: "#1D6340", successContainerHovered: "#F5FBF8", successContainerPressed: "#F5FBF8", successContainerDisabled: "#F5FBF8", successContainerFocused: "#F5FBF8", alert: "#F4BF48", onAlert: "#000000", alertHovered: "#F7CF76", alertPressed: "#F7CF76", alertDisabled: "#FFFCF6", alertFocused: "#F7CF76", alertContainer: "#FDF5E4", onAlertContainer: "#92732B", alertContainerHovered: "#FFFCF6", alertContainerPressed: "#FFFCF6", alertContainerDisabled: "#FFFCF6", alertContainerFocused: "#FFFCF6", error: "#F65651", onError: "#FFFFFF", errorHovered: "#F8807D", errorPressed: "#F8807D", errorDisabled: "#FFF7F6", errorFocused: "#F8807D", errorContainer: "#FEE6E5", onErrorContainer: "#943431", errorContainerHovered: "#FFF7F6", errorContainerPressed: "#FFF7F6", errorContainerDisabled: "#FFF7F6", errorContainerFocused: "#FFF7F6", info: "#07A0B8", onInfo: "#FFFFFF", infoHovered: "#45B8CA", infoPressed: "#45B8CA", infoDisabled: "#F3FAFC", infoFocused: "#45B8CA", infoContainer: "#DAF1F4", onInfoContainer: "#04606E", infoContainerHovered: "#F3FAFC", infoContainerPressed: "#F3FAFC", infoContainerDisabled: "#F3FAFC", infoContainerFocused: "#F3FAFC", neutral: "#7B7986", onNeutral: "#FFFFFF", neutralHovered: "#9C9BA4", neutralPressed: "#9C9BA4", neutralDisabled: "#F8F8F9", neutralFocused: "#9C9BA4", neutralContainer: "#EBEBED", onNeutralContainer: "#4A4950", neutralContainerHovered: "#F8F8F9", neutralContainerPressed: "#F8F8F9", neutralContainerDisabled: "#F8F8F9", neutralContainerFocused: "#F8F8F9", background: "#FFFFFF", onBackground: "#000000", backgroundVariant: "#F8F8F9", onBackgroundVariant: "#000000", surface: "#FFFFFF", onSurface: "#000000", surfaceHovered: "#F4F4FC", surfacePressed: "#F4F4FC", surfaceDisabled: "#F8F8F9", surfaceFocused: "#F4F4FC", surfaceInverse: "#252428", onSurfaceInverse: "#FFFFFF", surfaceInverseHovered: "#313036", surfaceInversePressed: "#313036", surfaceInverseDisabled: "#F8F8F9", surfaceInverseFocused: "#313036", outline: "#D1D0D5", outlineHigh: "#000000", outlineHovered: "#2118C9", outlinePressed: "#2118C9", outlineDisabled: "#F8F8F9", outlineFocused: "#D1D0D5", overlay: "#313036", onOverlay: "#FFFFFF" }, fontFamily: { sans: '"Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"', mono: 'SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace' }, fontSize: { display1: { fontSize: "2.5rem", lineHeight: "3.5rem", fontWeight: "700" }, display1Expanded: { fontSize: "3rem", lineHeight: "4rem", fontWeight: "700" }, display2: { fontSize: "2rem", lineHeight: "2.75rem", fontWeight: "700" }, display2Expanded: { fontSize: "2.5rem", lineHeight: "3.5rem", fontWeight: "700" }, display3: { fontSize: "1.5rem", lineHeight: "2rem", fontWeight: "700" }, display3Expanded: { fontSize: "2rem", lineHeight: "2.75rem", fontWeight: "700" }, headline1: { fontSize: "1.25rem", lineHeight: "1.75rem", fontWeight: "700" }, headline1Expanded: { fontSize: "1.5rem", lineHeight: "2rem", fontWeight: "700" }, headline2: { fontSize: "1.125rem", lineHeight: "1.5rem", fontWeight: "700" }, headline2Expanded: { fontSize: "1.25rem", lineHeight: "1.75rem", fontWeight: "700" }, subhead: { fontSize: "1rem", lineHeight: "1.5rem", fontWeight: "700" }, subheadExpanded: { fontSize: "1rem", lineHeight: "1.5rem", fontWeight: "700" }, body1: { fontSize: "1rem", lineHeight: "1.5rem" }, body2: { fontSize: "0.875rem", lineHeight: "1.25rem" }, caption: { fontSize: "0.75rem", lineHeight: "1rem" }, small: { fontSize: "0.625rem", lineHeight: "0.875rem" }, body1Link: { fontSize: "1rem", lineHeight: "1.5rem" }, body2Link: { fontSize: "0.875rem", lineHeight: "1.125rem" }, captionLink: { fontSize: "0.75rem", lineHeight: "1rem" }, callout: { fontSize: "1rem", lineHeight: "1.5rem" } }, fontWeight: { regular: "400", medium: "500", semiBold: "600", bold: "700" }, opacity: { 0: "0", none: "1", dim1: "0.72", dim2: "0.56", dim3: "0.40", dim4: "0.16", dim5: "0.08" }, screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px" }, spacing: { auto: "auto", none: "0px", sm: "0.25rem", md: "0.5rem", lg: "1rem", xl: "1.5rem", "2xl": "2rem", "3xl": "2.5rem" }, zIndex: { hide: "-1", base: "0", raised: "1", dropdown: "1000", sticky: "1100", overlay: "1300", modal: "1400", popover: "1500", skipLink: "1600", toast: "1700", tooltip: "1800" } };
3
3
  function a(e, r = o) {
4
4
  return n(r, e);
5
5
  }
package/dist/types.d.ts CHANGED
@@ -154,6 +154,7 @@ export interface Theme {
154
154
  };
155
155
  fontFamily: {
156
156
  sans: string;
157
+ mono: string;
157
158
  };
158
159
  /**
159
160
  * https://www.figma.com/file/ezqkDE3LqYrek9MvYnr4dR/Spark-Foundations?node-id=105%3A2710&t=lLeJnznf64zUBmdL-4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/theme-utils",
3
- "version": "2.16.0",
3
+ "version": "2.17.0",
4
4
  "description": "package for managing Spark theme configuration",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,7 +12,7 @@
12
12
  "build": "vite build"
13
13
  },
14
14
  "dependencies": {
15
- "deepmerge": "4.3.0",
15
+ "deepmerge": "4.3.1",
16
16
  "type-fest": "3.10.0"
17
17
  },
18
18
  "repository": {
@@ -25,5 +25,5 @@
25
25
  },
26
26
  "homepage": "https://sparkui.vercel.app",
27
27
  "license": "MIT",
28
- "gitHead": "4a623b804156855689c2a8600742237c2a53f057"
28
+ "gitHead": "842feaa1261f595643cd1b04ca552691891992c3"
29
29
  }