@grantbii/design-system 1.0.24 → 1.0.26
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/README.md +1 -1
- package/core/atoms/colors.d.ts +11 -7
- package/core/atoms/colors.js +11 -7
- package/core/global/GlobalStyle.js +3 -3
- package/index.d.ts +3 -2
- package/index.js +3 -2
- package/package.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
package/core/atoms/colors.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const main: {
|
|
2
2
|
grantbiiBlue: string;
|
|
3
3
|
grantbiiOrange: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare const base: {
|
|
6
|
+
black: string;
|
|
7
|
+
white: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const neutral: {
|
|
8
10
|
grey1: string;
|
|
9
11
|
grey2: string;
|
|
10
12
|
grey3: string;
|
|
11
13
|
grey4: string;
|
|
12
14
|
};
|
|
13
|
-
export declare const
|
|
15
|
+
export declare const accent: {
|
|
14
16
|
red1: string;
|
|
15
17
|
red2: string;
|
|
16
18
|
red3: string;
|
|
@@ -24,8 +26,7 @@ export declare const ACCENT_COLOR: {
|
|
|
24
26
|
blue2: string;
|
|
25
27
|
blue3: string;
|
|
26
28
|
};
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const TYPOGRAPHY_COLOR: {
|
|
29
|
+
export declare const typography: {
|
|
29
30
|
blackHigh: string;
|
|
30
31
|
blackMedium: string;
|
|
31
32
|
blackLow: string;
|
|
@@ -33,3 +34,6 @@ export declare const TYPOGRAPHY_COLOR: {
|
|
|
33
34
|
whiteMedium: string;
|
|
34
35
|
whiteLow: string;
|
|
35
36
|
};
|
|
37
|
+
export declare const semantic: {
|
|
38
|
+
overlay: string;
|
|
39
|
+
};
|
package/core/atoms/colors.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const main = {
|
|
2
2
|
grantbiiBlue: "#16538a",
|
|
3
3
|
grantbiiOrange: "#f3924d",
|
|
4
4
|
};
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const base = {
|
|
6
|
+
black: "#232022",
|
|
7
|
+
white: "#ffffff",
|
|
8
|
+
};
|
|
9
|
+
export const neutral = {
|
|
8
10
|
grey1: "#999999",
|
|
9
11
|
grey2: "#cccccc",
|
|
10
12
|
grey3: "#eeeeee",
|
|
11
13
|
grey4: "#fafafa",
|
|
12
14
|
};
|
|
13
|
-
export const
|
|
15
|
+
export const accent = {
|
|
14
16
|
// usually includes dangerous, wrong or rejected information
|
|
15
17
|
red1: "#c02318",
|
|
16
18
|
red2: "#f88e86",
|
|
@@ -28,8 +30,7 @@ export const ACCENT_COLOR = {
|
|
|
28
30
|
blue2: "#74aeef",
|
|
29
31
|
blue3: "#bad6f7",
|
|
30
32
|
};
|
|
31
|
-
export const
|
|
32
|
-
export const TYPOGRAPHY_COLOR = {
|
|
33
|
+
export const typography = {
|
|
33
34
|
blackHigh: "#000000e5",
|
|
34
35
|
blackMedium: "#00000099",
|
|
35
36
|
blackLow: "#0000004d",
|
|
@@ -37,3 +38,6 @@ export const TYPOGRAPHY_COLOR = {
|
|
|
37
38
|
whiteMedium: "#ffffff99",
|
|
38
39
|
whiteLow: "#0000001a",
|
|
39
40
|
};
|
|
41
|
+
export const semantic = {
|
|
42
|
+
overlay: "#13131366",
|
|
43
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createGlobalStyle } from "styled-components";
|
|
3
3
|
import "../../public/fonts/satoshi/css/satoshi.css";
|
|
4
|
-
import
|
|
4
|
+
import * as Colors from "../atoms/colors";
|
|
5
5
|
const GlobalStyle = createGlobalStyle `
|
|
6
6
|
html,
|
|
7
7
|
body {
|
|
@@ -9,8 +9,8 @@ const GlobalStyle = createGlobalStyle `
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
body {
|
|
12
|
-
color: ${
|
|
13
|
-
background: ${
|
|
12
|
+
color: ${Colors.typography.blackHigh};
|
|
13
|
+
background: ${Colors.base.white};
|
|
14
14
|
font-family: Satoshi;
|
|
15
15
|
-webkit-font-smoothing: antialiased;
|
|
16
16
|
-moz-osx-font-smoothing: grayscale;
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from "@phosphor-icons/react";
|
|
1
|
+
export * as Icons from "@phosphor-icons/react";
|
|
2
|
+
export * as Flags from "country-flag-icons/react/3x2";
|
|
2
3
|
export { default as BrandLogo } from "./core/atoms/BrandLogo";
|
|
3
|
-
export * from "./core/atoms/colors";
|
|
4
|
+
export * as Colors from "./core/atoms/colors";
|
|
4
5
|
export { default as GlobalStyle } from "./core/global/GlobalStyle";
|
|
5
6
|
export { default as StyledComponentsRegistry } from "./core/integrations/StyledComponentsRegistry";
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export * from "@phosphor-icons/react";
|
|
1
|
+
export * as Icons from "@phosphor-icons/react";
|
|
2
|
+
export * as Flags from "country-flag-icons/react/3x2";
|
|
2
3
|
export { default as BrandLogo } from "./core/atoms/BrandLogo";
|
|
3
|
-
export * from "./core/atoms/colors";
|
|
4
|
+
export * as Colors from "./core/atoms/colors";
|
|
4
5
|
export { default as GlobalStyle } from "./core/global/GlobalStyle";
|
|
5
6
|
export { default as StyledComponentsRegistry } from "./core/integrations/StyledComponentsRegistry";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantbii/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "Grantbii's Design System",
|
|
5
5
|
"homepage": "https://design.grantbii.com",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@phosphor-icons/react": "^2.1.10",
|
|
22
|
+
"country-flag-icons": "^1.5.19",
|
|
22
23
|
"next": "^15.3.5",
|
|
23
24
|
"react": "^19.1.0",
|
|
24
25
|
"react-dom": "^19.1.0",
|