@akinon/ui-theme 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/colors.d.ts +143 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/index.cjs +37 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1908 -0
- package/dist/theme.d.ts +37 -0
- package/dist/theme.d.ts.map +1 -0
- package/package.json +43 -0
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { theme as antdTheme, ThemeConfig } from 'antd';
|
|
2
|
+
type ColorName = 'akinon' | 'azure' | 'orange' | 'red' | 'green' | 'purple' | 'gray' | 'ebonyClay' | 'neutral';
|
|
3
|
+
type Color = {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
type Colors = Record<ColorName, Color>;
|
|
7
|
+
export type DefaultThemeConfig = ThemeConfig & {
|
|
8
|
+
colors: Colors;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Non-editable akinon theme object.
|
|
12
|
+
* This object contains both our theme values and
|
|
13
|
+
* antd's default theme values.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const theme: DefaultThemeConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Used to access antd's token values from react components.
|
|
19
|
+
* For detailed usage see,
|
|
20
|
+
* https://ant.design/docs/react/customize-theme#consume-design-token
|
|
21
|
+
*/
|
|
22
|
+
export declare const useToken: typeof antdTheme.useToken;
|
|
23
|
+
/**
|
|
24
|
+
* Returns css variable objects for our
|
|
25
|
+
* theme's custom color palette.
|
|
26
|
+
*
|
|
27
|
+
* Outputs css variables like:
|
|
28
|
+
* --color-primary-100: #f0f8ff;
|
|
29
|
+
* --color-body-fg: #ffffff;
|
|
30
|
+
* --color-success-500: #52c41a;
|
|
31
|
+
* --color-{object_key}-{object_key}: {color_value};
|
|
32
|
+
*/
|
|
33
|
+
export declare const getCssVariables: () => {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAiBvD,KAAK,SAAS,GACV,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,WAAW,GACX,SAAS,CAAC;AAEd,KAAK,KAAK,GAAG;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;AAavC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,kBA+CnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,EAAE,OAAO,SAAS,CAAC,QAA6B,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe;;CAc3B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@akinon/ui-theme",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Akinon UI's default theme values.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"antd": "5.11.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"clean-package": "2.2.0",
|
|
17
|
+
"@akinon/vite-config": "^0.1.0",
|
|
18
|
+
"eslint-config-custom": "0.1.0",
|
|
19
|
+
"tsconfig": "0.0.0"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"react": ">=18",
|
|
23
|
+
"react-dom": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"clean-package": "../../../clean-package.config.json",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js",
|
|
31
|
+
"require": "./dist/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "vite build",
|
|
37
|
+
"lint": "eslint *.ts*",
|
|
38
|
+
"test": "vitest run",
|
|
39
|
+
"test:ui": "vitest --ui",
|
|
40
|
+
"test:watch": "vitest watch",
|
|
41
|
+
"typecheck": "tsc --noEmit"
|
|
42
|
+
}
|
|
43
|
+
}
|