@maxsteinwender/sort-ui 0.1.0 → 0.1.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/README.md +35 -0
- package/dist/fonts/Redaction/webfonts/Redaction-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_10-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_10-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_10-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_100-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_100-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_100-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_20-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_20-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_20-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_35-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_35-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_35-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_50-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_50-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_50-Regular.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_70-Bold.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_70-Italic.woff2 +0 -0
- package/dist/fonts/Redaction/webfonts/Redaction_70-Regular.woff2 +0 -0
- package/dist/styles.css +6 -6
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
A coded design system based on the [Sort UI Kit](https://sortui.company) — Figma components translated into production-ready Next.js components, documented in Storybook.
|
|
4
4
|
|
|
5
|
+
**npm package:** [`@maxsteinwender/sort-ui`](https://www.npmjs.com/package/@maxsteinwender/sort-ui)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @maxsteinwender/sort-ui
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
**Usage:**
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
// 1. Import styles once in your app root (e.g. layout.tsx, _app.tsx, main.tsx)
|
|
17
|
+
import '@maxsteinwender/sort-ui/styles.css'
|
|
18
|
+
|
|
19
|
+
// 2. Import components
|
|
20
|
+
import { Button, Avatar, StatusBadge } from '@maxsteinwender/sort-ui'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Next.js with Tailwind (optional):** extend your Tailwind config with Sort UI tokens:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
// tailwind.config.js
|
|
27
|
+
import sortUIPreset from '@maxsteinwender/sort-ui/tailwind-preset'
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
presets: [sortUIPreset],
|
|
31
|
+
content: [
|
|
32
|
+
'./src/**/*.{ts,tsx}',
|
|
33
|
+
'./node_modules/@maxsteinwender/sort-ui/dist/**/*.js',
|
|
34
|
+
],
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
5
40
|
## Overview
|
|
6
41
|
|
|
7
42
|
| | |
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/styles.css
CHANGED
|
@@ -13024,7 +13024,7 @@
|
|
|
13024
13024
|
@font-face {
|
|
13025
13025
|
font-family: 'Redaction';
|
|
13026
13026
|
|
|
13027
|
-
src: url('
|
|
13027
|
+
src: url('./fonts/Redaction/webfonts/Redaction-Regular.woff2') format('woff2');
|
|
13028
13028
|
|
|
13029
13029
|
font-weight: 400;
|
|
13030
13030
|
|
|
@@ -13036,7 +13036,7 @@
|
|
|
13036
13036
|
@font-face {
|
|
13037
13037
|
font-family: 'Redaction';
|
|
13038
13038
|
|
|
13039
|
-
src: url('
|
|
13039
|
+
src: url('./fonts/Redaction/webfonts/Redaction-Italic.woff2') format('woff2');
|
|
13040
13040
|
|
|
13041
13041
|
font-weight: 400;
|
|
13042
13042
|
|
|
@@ -13048,7 +13048,7 @@
|
|
|
13048
13048
|
@font-face {
|
|
13049
13049
|
font-family: 'Redaction';
|
|
13050
13050
|
|
|
13051
|
-
src: url('
|
|
13051
|
+
src: url('./fonts/Redaction/webfonts/Redaction-Bold.woff2') format('woff2');
|
|
13052
13052
|
|
|
13053
13053
|
font-weight: 700;
|
|
13054
13054
|
|
|
@@ -13062,7 +13062,7 @@
|
|
|
13062
13062
|
@font-face {
|
|
13063
13063
|
font-family: 'Redaction 35';
|
|
13064
13064
|
|
|
13065
|
-
src: url('
|
|
13065
|
+
src: url('./fonts/Redaction/webfonts/Redaction_35-Regular.woff2') format('woff2');
|
|
13066
13066
|
|
|
13067
13067
|
font-weight: 400;
|
|
13068
13068
|
|
|
@@ -13074,7 +13074,7 @@
|
|
|
13074
13074
|
@font-face {
|
|
13075
13075
|
font-family: 'Redaction 35';
|
|
13076
13076
|
|
|
13077
|
-
src: url('
|
|
13077
|
+
src: url('./fonts/Redaction/webfonts/Redaction_35-Italic.woff2') format('woff2');
|
|
13078
13078
|
|
|
13079
13079
|
font-weight: 400;
|
|
13080
13080
|
|
|
@@ -13086,7 +13086,7 @@
|
|
|
13086
13086
|
@font-face {
|
|
13087
13087
|
font-family: 'Redaction 35';
|
|
13088
13088
|
|
|
13089
|
-
src: url('
|
|
13089
|
+
src: url('./fonts/Redaction/webfonts/Redaction_35-Bold.woff2') format('woff2');
|
|
13090
13090
|
|
|
13091
13091
|
font-weight: 700;
|
|
13092
13092
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxsteinwender/sort-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A coded design system based on Sort UI Kit — Figma components as production-ready Next.js/Tailwind components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -28,8 +28,10 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "next dev",
|
|
30
30
|
"build": "next build",
|
|
31
|
-
"build:lib": "tsup && npm run build:lib:css",
|
|
31
|
+
"build:lib": "tsup && npm run build:lib:css && npm run build:lib:fonts && npm run build:lib:fix-font-urls",
|
|
32
32
|
"build:lib:css": "tailwindcss -i src/app/globals.css -o dist/styles.css --config tailwind.config.ts",
|
|
33
|
+
"build:lib:fonts": "mkdir -p dist/fonts/Redaction && cp -r public/fonts/Redaction/webfonts dist/fonts/Redaction/",
|
|
34
|
+
"build:lib:fix-font-urls": "sed -i '' \"s|url('/fonts/|url('./fonts/|g\" dist/styles.css",
|
|
33
35
|
"start": "next start",
|
|
34
36
|
"lint": "next lint",
|
|
35
37
|
"storybook": "storybook dev -p 6006",
|