@spark-ui/theme-utils 2.14.1 → 2.15.2

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,22 @@
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.15.2](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.15.1...@spark-ui/theme-utils@2.15.2) (2023-05-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **theme-utils:** fix deps ([2393ce6](https://github.com/adevinta/spark/commit/2393ce6dda743255af020e9109e77df5ad27fc67))
11
+
12
+ ## [2.15.1](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.15.0...@spark-ui/theme-utils@2.15.1) (2023-05-09)
13
+
14
+ **Note:** Version bump only for package @spark-ui/theme-utils
15
+
16
+ # [2.15.0](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.14.1...@spark-ui/theme-utils@2.15.0) (2023-05-03)
17
+
18
+ ### Features
19
+
20
+ - **theme-utils:** separated hovered colors from pressed colors ([d3a78ce](https://github.com/adevinta/spark/commit/d3a78cecd11e4722bffb6bb83932711833e888de))
21
+
6
22
  ## [2.14.1](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.14.0...@spark-ui/theme-utils@2.14.1) (2023-04-28)
7
23
 
8
24
  **Note:** Version bump only for package @spark-ui/theme-utils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/theme-utils",
3
- "version": "2.14.1",
3
+ "version": "2.15.2",
4
4
  "description": "package for managing Spark theme configuration",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,8 +12,8 @@
12
12
  "build": "vite build"
13
13
  },
14
14
  "dependencies": {
15
- "deepmerge": "^4.3.0",
16
- "type-fest": "^3.6.1"
15
+ "deepmerge": "4.3.0",
16
+ "type-fest": "3.6.1"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -24,6 +24,5 @@
24
24
  "url": "https://github.com/adevinta/spark/issues"
25
25
  },
26
26
  "homepage": "https://sparkui.vercel.app",
27
- "license": "MIT",
28
- "gitHead": "700299e1f785ee2d2bd97db262cbcc9e258c2ed4"
27
+ "license": "MIT"
29
28
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Meta Platforms, Inc. and affiliates.
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.
@@ -1,13 +0,0 @@
1
- import { type Theme } from './types';
2
- /**
3
- * Creates a custom theme by merging the default theme with a partial custom theme passed as an argument.
4
- *
5
- * @param {Partial<Theme>} theme - A partial theme object which holds the theme values that need to be customized or overridden. When a category is included in the `theme` parameter, all of the category's tokens must be overridden.
6
- * @param {Theme} [fromTheme=defaultTheme] - (Optional) A theme object from which to derive the new custom theme (instead of Spark's `defaultTheme`)
7
- *
8
- * @example
9
- *
10
- * const alternativeTheme: Partial<Theme> = { ... }
11
- * const newTheme = createTheme(alternativeTheme)
12
- */
13
- export declare function createTheme(theme: Partial<Theme>, fromTheme?: Theme): Theme;
@@ -1,2 +0,0 @@
1
- import type { Theme } from './types';
2
- export declare const defaultTheme: Theme;
@@ -1,2 +0,0 @@
1
- import { type Theme } from './types';
2
- export declare const defaultThemeDark: Theme;
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { createTheme } from './createTheme';
2
- export { defaultTheme } from './defaultTheme';
3
- export { defaultThemeDark } from './defaultThemeDark';
4
- export type { Theme, ThemeConfig } from './types';
package/dist/index.js DELETED
@@ -1 +0,0 @@
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",primaryDisabled:"#F4F4FC",primaryFocused:"#5952D6",primaryContainer:"#E2E1F8",onPrimaryContainer:"#140E79",primaryContainerHovered:"#F4F4FC",primaryContainerDisabled:"#F4F4FC",primaryContainerFocused:"#F4F4FC",primaryVariant:"#140E79",onPrimaryVariant:"#FFFFFF",primaryVariantHovered:"#191297",primaryVariantDisabled:"#F4F4FC",primaryVariantFocused:"#191297",secondary:"#FD398A",onSecondary:"#FFFFFF",secondaryHovered:"#FE6BA7",secondaryDisabled:"#FFF5F9",secondaryFocused:"#FE6BA7",secondaryContainer:"#FFE1ED",onSecondaryContainer:"#982253",secondaryContainerHovered:"#FFF5F9",secondaryContainerDisabled:"#FFF5F9",secondaryContainerFocused:"#FFF5F9",secondaryVariant:"#982253",onSecondaryVariant:"#FFFFFF",secondaryVariantHovered:"#CA2E6E",secondaryVariantDisabled:"#FFF5F9",secondaryVariantFocused:"#CA2E6E",success:"#31A56B",onSuccess:"#FFFFFF",successHovered:"#64BC90",successDisabled:"#F5FBF8",successFocused:"#64BC90",successContainer:"#E0F2E9",onSuccessContainer:"#1D6340",successContainerHovered:"#F5FBF8",successContainerDisabled:"#F5FBF8",successContainerFocused:"#F5FBF8",alert:"#F4BF48",onAlert:"#000000",alertHovered:"#F7CF76",alertDisabled:"#FFFCF6",alertFocused:"#F7CF76",alertContainer:"#FDF5E4",onAlertContainer:"#92732B",alertContainerHovered:"#FFFCF6",alertContainerDisabled:"#FFFCF6",alertContainerFocused:"#FFFCF6",error:"#F65651",onError:"#FFFFFF",errorHovered:"#F8807D",errorDisabled:"#FFF7F6",errorFocused:"#F8807D",errorContainer:"#FEE6E5",onErrorContainer:"#943431",errorContainerHovered:"#FFF7F6",errorContainerDisabled:"#FFF7F6",errorContainerFocused:"#FFF7F6",info:"#07A0B8",onInfo:"#FFFFFF",infoHovered:"#45B8CA",infoDisabled:"#F3FAFC",infoFocused:"#45B8CA",infoContainer:"#DAF1F4",onInfoContainer:"#04606E",infoContainerHovered:"#F3FAFC",infoContainerDisabled:"#F3FAFC",infoContainerFocused:"#F3FAFC",neutral:"#7B7986",onNeutral:"#FFFFFF",neutralHovered:"#9C9BA4",neutralDisabled:"#F8F8F9",neutralFocused:"#9C9BA4",neutralContainer:"#EBEBED",onNeutralContainer:"#4A4950",neutralContainerHovered:"#F8F8F9",neutralContainerDisabled:"#F8F8F9",neutralContainerFocused:"#F8F8F9",background:"#FFFFFF",onBackground:"#000000",backgroundVariant:"#F8F8F9",onBackgroundVariant:"#000000",surface:"#FFFFFF",onSurface:"#000000",surfaceHovered:"#F4F4FC",surfaceDisabled:"#F8F8F9",surfaceFocused:"#F4F4FC",surfaceInverse:"#252428",onSurfaceInverse:"#FFFFFF",surfaceInverseHovered:"#313036",surfaceInverseDisabled:"#F8F8F9",surfaceInverseFocused:"#313036",outline:"#D1D0D5",outlineHigh:"#000000",outlineHovered:"#2118C9",outlineDisabled:"#F8F8F9",outlineFocused:"#D1D0D5",overlay:"#313036",onOverlay:"#FFFFFF"},fontFamily:{nunitoSans:'"Nunito Sans", sans-serif',openSans:'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",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",primaryDisabled:"#080632",primaryFocused:"#5952D6",primaryContainer:"#0D0A50",onPrimaryContainer:"#B1AEEC",primaryContainerHovered:"#080632",primaryContainerDisabled:"#080632",primaryContainerFocused:"#080632",primaryVariant:"#B1AEEC",onPrimaryVariant:"#000000",primaryVariantHovered:"#8580E1",primaryVariantDisabled:"#080632",primaryVariantFocused:"#8580E1",secondary:"#FE6BA7",onSecondary:"#000000",secondaryHovered:"#FD398A",secondaryDisabled:"#3F0E22",secondaryFocused:"#FD398A",secondaryContainer:"#651737",onSecondaryContainer:"#FEBAD6",secondaryContainerHovered:"#3F0E22",secondaryContainerDisabled:"#3F0E22",secondaryContainerFocused:"#3F0E22",secondaryVariant:"#FE92BF",onSecondaryVariant:"#000000",secondaryVariantHovered:"#FE6BA7",secondaryVariantDisabled:"#3F0E22",secondaryVariantFocused:"#FE6BA7",success:"#64BC90",onSuccess:"#000000",successHovered:"#31A56B",successDisabled:"#14422B",successFocused:"#31A56B",successContainer:"#14422B",onSuccessContainer:"#B7DFCB",successContainerHovered:"#14422B",successContainerDisabled:"#14422B",successContainerFocused:"#14422B",alert:"#F7CF76",onAlert:"#000000",alertHovered:"#F4BF48",alertDisabled:"#3D3012",alertFocused:"#F4BF48",alertContainer:"#624C1D",onAlertContainer:"#FBE9BF",alertContainerHovered:"#3D3012",alertContainerDisabled:"#3D3012",alertContainerFocused:"#3D3012",error:"#F8807D",onError:"#000000",errorHovered:"#F65651",errorDisabled:"#3E1514",errorFocused:"#F65651",errorContainer:"#622220",onErrorContainer:"#FCC4C2",errorContainerHovered:"#3E1514",errorContainerDisabled:"#3E1514",errorContainerFocused:"#3E1514",info:"#45B8CA",onInfo:"#000000",infoHovered:"#07A0B8",infoDisabled:"#02282E",infoFocused:"#07A0B8",infoContainer:"#03404A",onInfoContainer:"#A8DEE6",infoContainerHovered:"#02282E",infoContainerDisabled:"#02282E",infoContainerFocused:"#02282E",neutral:"#9C9BA4",onNeutral:"#000000",neutralHovered:"#5C5B64",neutralDisabled:"#252428",neutralFocused:"#5C5B64",neutralContainer:"#313036",onNeutralContainer:"#D1D0D5",neutralContainerHovered:"#252428",neutralContainerDisabled:"#252428",neutralContainerFocused:"#252428",background:"#000000",onBackground:"#FFFFFF",backgroundVariant:"#252428",onBackgroundVariant:"#FFFFFF",surface:"#000000",onSurface:"#FFFFFF",surfaceHovered:"#080632",surfaceDisabled:"#252428",surfaceFocused:"#080632",surfaceInverse:"#F8F8F9",onSurfaceInverse:"#000000",surfaceInverseHovered:"#EBEBED",surfaceInverseDisabled:"#252428",surfaceInverseFocused:"#EBEBED",outline:"#4A4950",outlineHigh:"#FFFFFF",outlineHovered:"#7583FF",outlineDisabled:"#252428",outlineFocused:"#4A4950",overlay:"#313036",onOverlay:"#FFFFFF"}});exports.createTheme=r,exports.defaultTheme=e,exports.defaultThemeDark=F;
package/dist/index.mjs DELETED
@@ -1,11 +0,0 @@
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", primaryDisabled: "#F4F4FC", primaryFocused: "#5952D6", primaryContainer: "#E2E1F8", onPrimaryContainer: "#140E79", primaryContainerHovered: "#F4F4FC", primaryContainerDisabled: "#F4F4FC", primaryContainerFocused: "#F4F4FC", primaryVariant: "#140E79", onPrimaryVariant: "#FFFFFF", primaryVariantHovered: "#191297", primaryVariantDisabled: "#F4F4FC", primaryVariantFocused: "#191297", secondary: "#FD398A", onSecondary: "#FFFFFF", secondaryHovered: "#FE6BA7", secondaryDisabled: "#FFF5F9", secondaryFocused: "#FE6BA7", secondaryContainer: "#FFE1ED", onSecondaryContainer: "#982253", secondaryContainerHovered: "#FFF5F9", secondaryContainerDisabled: "#FFF5F9", secondaryContainerFocused: "#FFF5F9", secondaryVariant: "#982253", onSecondaryVariant: "#FFFFFF", secondaryVariantHovered: "#CA2E6E", secondaryVariantDisabled: "#FFF5F9", secondaryVariantFocused: "#CA2E6E", success: "#31A56B", onSuccess: "#FFFFFF", successHovered: "#64BC90", successDisabled: "#F5FBF8", successFocused: "#64BC90", successContainer: "#E0F2E9", onSuccessContainer: "#1D6340", successContainerHovered: "#F5FBF8", successContainerDisabled: "#F5FBF8", successContainerFocused: "#F5FBF8", alert: "#F4BF48", onAlert: "#000000", alertHovered: "#F7CF76", alertDisabled: "#FFFCF6", alertFocused: "#F7CF76", alertContainer: "#FDF5E4", onAlertContainer: "#92732B", alertContainerHovered: "#FFFCF6", alertContainerDisabled: "#FFFCF6", alertContainerFocused: "#FFFCF6", error: "#F65651", onError: "#FFFFFF", errorHovered: "#F8807D", errorDisabled: "#FFF7F6", errorFocused: "#F8807D", errorContainer: "#FEE6E5", onErrorContainer: "#943431", errorContainerHovered: "#FFF7F6", errorContainerDisabled: "#FFF7F6", errorContainerFocused: "#FFF7F6", info: "#07A0B8", onInfo: "#FFFFFF", infoHovered: "#45B8CA", infoDisabled: "#F3FAFC", infoFocused: "#45B8CA", infoContainer: "#DAF1F4", onInfoContainer: "#04606E", infoContainerHovered: "#F3FAFC", infoContainerDisabled: "#F3FAFC", infoContainerFocused: "#F3FAFC", neutral: "#7B7986", onNeutral: "#FFFFFF", neutralHovered: "#9C9BA4", neutralDisabled: "#F8F8F9", neutralFocused: "#9C9BA4", neutralContainer: "#EBEBED", onNeutralContainer: "#4A4950", neutralContainerHovered: "#F8F8F9", neutralContainerDisabled: "#F8F8F9", neutralContainerFocused: "#F8F8F9", background: "#FFFFFF", onBackground: "#000000", backgroundVariant: "#F8F8F9", onBackgroundVariant: "#000000", surface: "#FFFFFF", onSurface: "#000000", surfaceHovered: "#F4F4FC", surfaceDisabled: "#F8F8F9", surfaceFocused: "#F4F4FC", surfaceInverse: "#252428", onSurfaceInverse: "#FFFFFF", surfaceInverseHovered: "#313036", surfaceInverseDisabled: "#F8F8F9", surfaceInverseFocused: "#313036", outline: "#D1D0D5", outlineHigh: "#000000", outlineHovered: "#2118C9", outlineDisabled: "#F8F8F9", outlineFocused: "#D1D0D5", overlay: "#313036", onOverlay: "#FFFFFF" }, fontFamily: { nunitoSans: '"Nunito Sans", sans-serif', openSans: '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", 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
- function a(e, r = o) {
4
- return n(r, e);
5
- }
6
- const i = a({ colors: { primary: "#7583FF", onPrimary: "#000000", primaryHovered: "#5952D6", primaryDisabled: "#080632", primaryFocused: "#5952D6", primaryContainer: "#0D0A50", onPrimaryContainer: "#B1AEEC", primaryContainerHovered: "#080632", primaryContainerDisabled: "#080632", primaryContainerFocused: "#080632", primaryVariant: "#B1AEEC", onPrimaryVariant: "#000000", primaryVariantHovered: "#8580E1", primaryVariantDisabled: "#080632", primaryVariantFocused: "#8580E1", secondary: "#FE6BA7", onSecondary: "#000000", secondaryHovered: "#FD398A", secondaryDisabled: "#3F0E22", secondaryFocused: "#FD398A", secondaryContainer: "#651737", onSecondaryContainer: "#FEBAD6", secondaryContainerHovered: "#3F0E22", secondaryContainerDisabled: "#3F0E22", secondaryContainerFocused: "#3F0E22", secondaryVariant: "#FE92BF", onSecondaryVariant: "#000000", secondaryVariantHovered: "#FE6BA7", secondaryVariantDisabled: "#3F0E22", secondaryVariantFocused: "#FE6BA7", success: "#64BC90", onSuccess: "#000000", successHovered: "#31A56B", successDisabled: "#14422B", successFocused: "#31A56B", successContainer: "#14422B", onSuccessContainer: "#B7DFCB", successContainerHovered: "#14422B", successContainerDisabled: "#14422B", successContainerFocused: "#14422B", alert: "#F7CF76", onAlert: "#000000", alertHovered: "#F4BF48", alertDisabled: "#3D3012", alertFocused: "#F4BF48", alertContainer: "#624C1D", onAlertContainer: "#FBE9BF", alertContainerHovered: "#3D3012", alertContainerDisabled: "#3D3012", alertContainerFocused: "#3D3012", error: "#F8807D", onError: "#000000", errorHovered: "#F65651", errorDisabled: "#3E1514", errorFocused: "#F65651", errorContainer: "#622220", onErrorContainer: "#FCC4C2", errorContainerHovered: "#3E1514", errorContainerDisabled: "#3E1514", errorContainerFocused: "#3E1514", info: "#45B8CA", onInfo: "#000000", infoHovered: "#07A0B8", infoDisabled: "#02282E", infoFocused: "#07A0B8", infoContainer: "#03404A", onInfoContainer: "#A8DEE6", infoContainerHovered: "#02282E", infoContainerDisabled: "#02282E", infoContainerFocused: "#02282E", neutral: "#9C9BA4", onNeutral: "#000000", neutralHovered: "#5C5B64", neutralDisabled: "#252428", neutralFocused: "#5C5B64", neutralContainer: "#313036", onNeutralContainer: "#D1D0D5", neutralContainerHovered: "#252428", neutralContainerDisabled: "#252428", neutralContainerFocused: "#252428", background: "#000000", onBackground: "#FFFFFF", backgroundVariant: "#252428", onBackgroundVariant: "#FFFFFF", surface: "#000000", onSurface: "#FFFFFF", surfaceHovered: "#080632", surfaceDisabled: "#252428", surfaceFocused: "#080632", surfaceInverse: "#F8F8F9", onSurfaceInverse: "#000000", surfaceInverseHovered: "#EBEBED", surfaceInverseDisabled: "#252428", surfaceInverseFocused: "#EBEBED", outline: "#4A4950", outlineHigh: "#FFFFFF", outlineHovered: "#7583FF", outlineDisabled: "#252428", outlineFocused: "#4A4950", overlay: "#313036", onOverlay: "#FFFFFF" } });
7
- export {
8
- a as createTheme,
9
- o as defaultTheme,
10
- i as defaultThemeDark
11
- };
package/dist/types.d.ts DELETED
@@ -1,229 +0,0 @@
1
- import { RequireAtLeastOne } from 'type-fest';
2
- interface SparkFontSize {
3
- fontSize: string;
4
- lineHeight: string;
5
- fontWeight?: string;
6
- letterSpacing?: string;
7
- }
8
- export interface Theme {
9
- borderRadius: {
10
- none: string;
11
- sm: string;
12
- md: string;
13
- lg: string;
14
- xl: string;
15
- full: string;
16
- };
17
- borderWidth: {
18
- none: string;
19
- sm: string;
20
- md: string;
21
- };
22
- boxShadow: {
23
- sm: string;
24
- DEFAULT: string;
25
- md: string;
26
- lg: string;
27
- xl: string;
28
- none: string;
29
- };
30
- /**
31
- * Spark color specifications: https://zeroheight.com/1186e1705/p/0879a9-colors/b/27d7a3
32
- */
33
- colors: {
34
- primary: string;
35
- onPrimary: string;
36
- primaryHovered: string;
37
- primaryDisabled: string;
38
- primaryFocused: string;
39
- primaryContainer: string;
40
- onPrimaryContainer: string;
41
- primaryContainerHovered: string;
42
- primaryContainerDisabled: string;
43
- primaryContainerFocused: string;
44
- secondary: string;
45
- onSecondary: string;
46
- secondaryHovered: string;
47
- secondaryDisabled: string;
48
- secondaryFocused: string;
49
- secondaryContainer: string;
50
- onSecondaryContainer: string;
51
- secondaryContainerHovered: string;
52
- secondaryContainerDisabled: string;
53
- secondaryContainerFocused: string;
54
- primaryVariant: string;
55
- onPrimaryVariant: string;
56
- primaryVariantHovered: string;
57
- primaryVariantDisabled: string;
58
- primaryVariantFocused: string;
59
- secondaryVariant: string;
60
- onSecondaryVariant: string;
61
- secondaryVariantHovered: string;
62
- secondaryVariantDisabled: string;
63
- secondaryVariantFocused: string;
64
- success: string;
65
- onSuccess: string;
66
- successHovered: string;
67
- successDisabled: string;
68
- successFocused: string;
69
- successContainer: string;
70
- onSuccessContainer: string;
71
- successContainerHovered: string;
72
- successContainerDisabled: string;
73
- successContainerFocused: string;
74
- alert: string;
75
- onAlert: string;
76
- alertHovered: string;
77
- alertDisabled: string;
78
- alertFocused: string;
79
- alertContainer: string;
80
- onAlertContainer: string;
81
- alertContainerHovered: string;
82
- alertContainerDisabled: string;
83
- alertContainerFocused: string;
84
- error: string;
85
- onError: string;
86
- errorHovered: string;
87
- errorDisabled: string;
88
- errorFocused: string;
89
- errorContainer: string;
90
- onErrorContainer: string;
91
- errorContainerHovered: string;
92
- errorContainerDisabled: string;
93
- errorContainerFocused: string;
94
- info: string;
95
- onInfo: string;
96
- infoHovered: string;
97
- infoDisabled: string;
98
- infoFocused: string;
99
- infoContainer: string;
100
- onInfoContainer: string;
101
- infoContainerHovered: string;
102
- infoContainerDisabled: string;
103
- infoContainerFocused: string;
104
- neutral: string;
105
- onNeutral: string;
106
- neutralHovered: string;
107
- neutralDisabled: string;
108
- neutralFocused: string;
109
- neutralContainer: string;
110
- onNeutralContainer: string;
111
- neutralContainerHovered: string;
112
- neutralContainerDisabled: string;
113
- neutralContainerFocused: string;
114
- background: string;
115
- onBackground: string;
116
- backgroundVariant: string;
117
- onBackgroundVariant: string;
118
- surface: string;
119
- onSurface: string;
120
- surfaceHovered: string;
121
- surfaceDisabled: string;
122
- surfaceFocused: string;
123
- surfaceInverse: string;
124
- onSurfaceInverse: string;
125
- surfaceInverseHovered: string;
126
- surfaceInverseDisabled: string;
127
- surfaceInverseFocused: string;
128
- outline: string;
129
- outlineHigh: string;
130
- outlineHovered: string;
131
- outlineDisabled: string;
132
- outlineFocused: string;
133
- overlay: string;
134
- onOverlay: string;
135
- };
136
- fontFamily: {
137
- nunitoSans: string;
138
- openSans: string;
139
- };
140
- /**
141
- * https://www.figma.com/file/ezqkDE3LqYrek9MvYnr4dR/Spark-Foundations?node-id=105%3A2710&t=lLeJnznf64zUBmdL-4
142
- */
143
- fontSize: {
144
- /** Reserved for short/important large text */
145
- display1: SparkFontSize;
146
- display1Expanded: SparkFontSize;
147
- /** Reserved for short/important medium text */
148
- display2: SparkFontSize;
149
- display2Expanded: SparkFontSize;
150
- /** Reserved for short/important small text */
151
- display3: SparkFontSize;
152
- display3Expanded: SparkFontSize;
153
- /** High-emphasis large text */
154
- headline1: SparkFontSize;
155
- headline1Expanded: SparkFontSize;
156
- /** High-emphasis medium text */
157
- headline2: SparkFontSize;
158
- headline2Expanded: SparkFontSize;
159
- /** High-emphasis small text */
160
- subhead: SparkFontSize;
161
- subheadExpanded: SparkFontSize;
162
- /** Content base text */
163
- body1: SparkFontSize;
164
- /** Content base text low hierarchy */
165
- body2: SparkFontSize;
166
- /** Support texts or error texts */
167
- caption: SparkFontSize;
168
- /** Legal texts, App bar labels */
169
- small: SparkFontSize;
170
- /** Content base text, Links */
171
- body1Link: SparkFontSize;
172
- /** Content base text, low hierarchy Links */
173
- body2Link: SparkFontSize;
174
- /** Support or error texts with a link */
175
- captionLink: SparkFontSize;
176
- /** Call to actions */
177
- callout: SparkFontSize;
178
- };
179
- fontWeight: {
180
- regular: string;
181
- medium: string;
182
- semiBold: string;
183
- bold: string;
184
- };
185
- opacity: {
186
- 0: string;
187
- dim1: string;
188
- dim2: string;
189
- dim3: string;
190
- dim4: string;
191
- dim5: string;
192
- };
193
- screens: {
194
- sm: string;
195
- md: string;
196
- lg: string;
197
- xl: string;
198
- };
199
- spacing: {
200
- auto: string;
201
- none: string;
202
- sm: string;
203
- md: string;
204
- lg: string;
205
- xl: string;
206
- '2xl': string;
207
- '3xl': string;
208
- };
209
- zIndex: {
210
- hide: string;
211
- base: string;
212
- raised: string;
213
- dropdown: string;
214
- sticky: string;
215
- overlay: string;
216
- modal: string;
217
- popover: string;
218
- skipLink: string;
219
- toast: string;
220
- tooltip: string;
221
- };
222
- }
223
- export interface ThemeConfig {
224
- tailwindThemeConfigPath: string;
225
- htmlFontSize?: number;
226
- tailwindCSSPath: string;
227
- themes: RequireAtLeastOne<Record<string, Theme>, 'default'>;
228
- }
229
- export {};