@atls-ui/theme 0.2.0 → 0.4.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
@@ -1,5 +1,30 @@
1
1
 
2
2
 
3
+ # [0.4.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.3.0...@atls-ui/theme@0.4.0) (2026-08-18)
4
+
5
+
6
+ ### Features
7
+
8
+
9
+ * **theme:** expose web borders ([6e0a7e8](https://github.com/atls/hyperion/commit/6e0a7e86272c8c36f819853ef3f9fd1ffbb6d000))
10
+ * **theme:** web borders tokens ([6422b3d](https://github.com/atls/hyperion/commit/6422b3d460623a752f14e48f312c3381a8b81ece))
11
+
12
+
13
+
14
+
15
+
16
+ # [0.3.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.2.0...@atls-ui/theme@0.3.0) (2026-08-13)
17
+
18
+
19
+ ### Features
20
+
21
+
22
+ * **theme:** radii web ([c411fb8](https://github.com/atls/hyperion/commit/c411fb8f88bda5ff21bd14216d78575306cc4c7e))
23
+
24
+
25
+
26
+
27
+
3
28
  # [0.2.0](https://github.com/atls/hyperion/compare/@atls-ui/theme@0.1.0...@atls-ui/theme@0.2.0) (2026-08-13)
4
29
 
5
30
 
package/dist/theme.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import type { BordersTokens } from './tokens/index.js';
1
2
  import type { Colors } from './tokens/index.js';
2
3
  import type { TypographyTokens } from './tokens/index.js';
3
4
  export interface Theme {
5
+ borders: BordersTokens;
4
6
  colors: Colors;
5
7
  typography: TypographyTokens;
6
8
  }
package/dist/theme.js CHANGED
@@ -1,11 +1,14 @@
1
+ import { borders } from './tokens/index.js';
1
2
  import { darkColors } from './tokens/index.js';
2
3
  import { lightColors } from './tokens/index.js';
3
4
  import { typography } from './tokens/index.js';
4
5
  export const lightTheme = {
6
+ borders: borders(lightColors),
5
7
  colors: lightColors,
6
8
  typography,
7
9
  };
8
10
  export const darkTheme = {
11
+ borders: borders(darkColors),
9
12
  colors: darkColors,
10
13
  typography,
11
14
  };
@@ -0,0 +1,3 @@
1
+ import type { Colors } from '../colors/index.js';
2
+ import type { BordersTokens } from './interfaces.js';
3
+ export declare const borders: (colors: Colors) => BordersTokens;
@@ -0,0 +1,32 @@
1
+ import { borderStyles } from './constants.js';
2
+ import { borderWidths } from './constants.js';
3
+ import { createBorder } from './utils/index.js';
4
+ export const borders = (colors) => ({
5
+ neutral: {
6
+ default: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.subtle),
7
+ hover: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.muted),
8
+ pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.base),
9
+ focused: createBorder(borderWidths.sm, borderStyles.solid, colors.action.base),
10
+ disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.soft),
11
+ },
12
+ action: {
13
+ default: createBorder(borderWidths.sm, borderStyles.solid, colors.action.base),
14
+ hover: createBorder(borderWidths.sm, borderStyles.solid, colors.action.hover),
15
+ pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.action.pressed),
16
+ focused: createBorder(borderWidths.md, borderStyles.solid, colors.action.base),
17
+ disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.action.disabled),
18
+ },
19
+ danger: {
20
+ default: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
21
+ hover: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
22
+ pressed: createBorder(borderWidths.sm, borderStyles.solid, colors.status.error),
23
+ focused: createBorder(borderWidths.md, borderStyles.solid, colors.status.error),
24
+ disabled: createBorder(borderWidths.sm, borderStyles.solid, colors.surface.soft),
25
+ },
26
+ dropzone: {
27
+ default: createBorder(borderWidths.sm, borderStyles.dashed, colors.surface.muted),
28
+ hover: createBorder(borderWidths.sm, borderStyles.dashed, colors.action.hover),
29
+ focused: createBorder(borderWidths.md, borderStyles.dashed, colors.action.base),
30
+ disabled: createBorder(borderWidths.sm, borderStyles.dashed, colors.surface.soft),
31
+ },
32
+ });
@@ -0,0 +1,10 @@
1
+ export declare const borderWidths: {
2
+ readonly none: "0";
3
+ readonly xs: "0.7px";
4
+ readonly sm: "1px";
5
+ readonly md: "2px";
6
+ };
7
+ export declare const borderStyles: {
8
+ readonly solid: "solid";
9
+ readonly dashed: "dashed";
10
+ };
@@ -0,0 +1,10 @@
1
+ export const borderWidths = {
2
+ none: '0',
3
+ xs: '0.7px',
4
+ sm: '1px',
5
+ md: '2px',
6
+ };
7
+ export const borderStyles = {
8
+ solid: 'solid',
9
+ dashed: 'dashed',
10
+ };
@@ -0,0 +1,4 @@
1
+ export * from './constants.js';
2
+ export * from './borders.js';
3
+ export type * from './interfaces.js';
4
+ export * from './utils/index.js';
@@ -0,0 +1,3 @@
1
+ export * from "./constants.js";
2
+ export * from "./borders.js";
3
+ export * from "./utils/index.js";
@@ -0,0 +1,19 @@
1
+ import type { borderStyles } from './constants.js';
2
+ import type { borderWidths } from './constants.js';
3
+ export type BorderStyle = (typeof borderStyles)[keyof typeof borderStyles];
4
+ export type BorderWidth = (typeof borderWidths)[keyof typeof borderWidths];
5
+ export interface BorderStates {
6
+ default: string;
7
+ hover: string;
8
+ focused: string;
9
+ disabled: string;
10
+ }
11
+ export interface PressableBorderStates extends BorderStates {
12
+ pressed: string;
13
+ }
14
+ export interface BordersTokens {
15
+ neutral: PressableBorderStates;
16
+ action: PressableBorderStates;
17
+ danger: PressableBorderStates;
18
+ dropzone: BorderStates;
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { BorderStyle } from '../interfaces.js';
2
+ import type { BorderWidth } from '../interfaces.js';
3
+ export declare const createBorder: (width: BorderWidth, style: BorderStyle, color: string) => string;
@@ -0,0 +1 @@
1
+ export const createBorder = (width, style, color) => `${width} ${style} ${color}`;
@@ -0,0 +1 @@
1
+ export * from './createBorder.js';
@@ -0,0 +1 @@
1
+ export * from "./createBorder.js";
@@ -1,8 +1,9 @@
1
1
  export * from './animations.js';
2
+ export * from './borders/index.js';
2
3
  export * from './colors/index.js';
3
4
  export * from './layout/spaces.js';
4
5
  export * from './opacities.js';
5
- export * from './radii.js';
6
+ export * from './layout/radii.js';
6
7
  export * from './space.js';
7
8
  export * from './typography/index.js';
8
9
  export * from './z-index.js';
@@ -1,8 +1,9 @@
1
1
  export * from "./animations.js";
2
+ export * from "./borders/index.js";
2
3
  export * from "./colors/index.js";
3
4
  export * from "./layout/spaces.js";
4
5
  export * from "./opacities.js";
5
- export * from "./radii.js";
6
+ export * from "./layout/radii.js";
6
7
  export * from "./space.js";
7
8
  export * from "./typography/index.js";
8
9
  export * from "./z-index.js";
@@ -1,6 +1,12 @@
1
1
  export declare const radii: {
2
- readonly none: "none";
3
- readonly full: "100%";
2
+ readonly none: "0";
3
+ readonly xs3: "2px";
4
+ readonly xs2: "4px";
5
+ readonly xs: "8px";
6
+ readonly sm: "12px";
7
+ readonly md: "16px";
8
+ readonly lg: "24px";
9
+ readonly full: "9999px";
4
10
  readonly f1: "1px";
5
11
  readonly f2: "2px";
6
12
  readonly f3: "3px";
@@ -1,6 +1,12 @@
1
1
  export const radii = {
2
- none: 'none',
3
- full: '100%',
2
+ none: '0',
3
+ xs3: '2px',
4
+ xs2: '4px',
5
+ xs: '8px',
6
+ sm: '12px',
7
+ md: '16px',
8
+ lg: '24px',
9
+ full: '9999px',
4
10
  f1: '1px',
5
11
  f2: '2px',
6
12
  f3: '3px',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls-ui/theme",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "exports": {