Add designlang public-shell pack; tighten auth capture checks
Ran authenticated extract against coulomb.social; session metadata matched anonymous Bubble defaults, so treat docs/design-extract as a public shell baseline (PROVENANCE.md). Capture script now refuses to overwrite storage-state.json with thin anonymous sessions.
This commit is contained in:
parent
0bf740017e
commit
319dd00465
28 changed files with 1524 additions and 6 deletions
8
docs/design-extract/storybook/.storybook/main.ts
Normal file
8
docs/design-extract/storybook/.storybook/main.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import type { StorybookConfig } from '@storybook/react-vite';
|
||||
|
||||
const config: StorybookConfig = {
|
||||
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(ts|tsx)'],
|
||||
addons: ['@storybook/addon-essentials', '@storybook/addon-docs'],
|
||||
framework: { name: '@storybook/react-vite', options: {} },
|
||||
};
|
||||
export default config;
|
||||
10
docs/design-extract/storybook/.storybook/preview.ts
Normal file
10
docs/design-extract/storybook/.storybook/preview.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import type { Preview } from '@storybook/react';
|
||||
import './../stories/tokens.css';
|
||||
|
||||
const preview: Preview = {
|
||||
parameters: {
|
||||
backgrounds: { default: 'paper' },
|
||||
controls: { matchers: { color: /(background|color)$/i } },
|
||||
},
|
||||
};
|
||||
export default preview;
|
||||
15
docs/design-extract/storybook/README.md
Normal file
15
docs/design-extract/storybook/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Index | Coulomb · Storybook
|
||||
|
||||
Auto-generated by `designlang <url> --storybook`.
|
||||
|
||||
## Stories
|
||||
_No anatomy detected on the source page._
|
||||
|
||||
## Run
|
||||
|
||||
```
|
||||
npm install
|
||||
npm run storybook
|
||||
```
|
||||
|
||||
Opens at http://localhost:6006.
|
||||
26
docs/design-extract/storybook/package.json
Normal file
26
docs/design-extract/storybook/package.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"name": "index---coulomb-storybook",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"build-storybook": "storybook build"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^8.0.0",
|
||||
"@storybook/addon-docs": "^8.0.0",
|
||||
"@storybook/blocks": "^8.0.0",
|
||||
"@storybook/react": "^8.0.0",
|
||||
"@storybook/react-vite": "^8.0.0",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"storybook": "^8.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"vite": "^5.0.0"
|
||||
}
|
||||
}
|
||||
15
docs/design-extract/storybook/stories/Tokens.mdx
Normal file
15
docs/design-extract/storybook/stories/Tokens.mdx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Meta, ColorPalette, ColorItem, Typeset } from '@storybook/blocks';
|
||||
|
||||
<Meta title="Extracted/Tokens" />
|
||||
|
||||
# Design tokens
|
||||
|
||||
Extracted from https://coulomb.social by [designlang](https://github.com/Manavarya09/design-extract).
|
||||
|
||||
<ColorPalette>
|
||||
<ColorItem title="primary" colors={{ primary: '#d08728' }} />
|
||||
<ColorItem title="secondary" colors={{ secondary: '#8b5cf6' }} />
|
||||
<ColorItem title="accent" colors={{ accent: '#f59e0b' }} />
|
||||
<ColorItem title="background" colors={{ background: '#ffffff' }} />
|
||||
<ColorItem title="foreground" colors={{ foreground: '#000000' }} />
|
||||
</ColorPalette>
|
||||
11
docs/design-extract/storybook/stories/tokens.css
Normal file
11
docs/design-extract/storybook/stories/tokens.css
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
:root {
|
||||
--color-primary: #d08728;
|
||||
--color-secondary: #8b5cf6;
|
||||
--color-accent: #f59e0b;
|
||||
--color-background: #ffffff;
|
||||
--color-foreground: #000000;
|
||||
--radius: 8px;
|
||||
--shadow: rgb(97, 97, 97) 2px 2px 8px 0px;
|
||||
--font-sans: 'Times New Roman', system-ui, sans-serif;
|
||||
}
|
||||
body { background: var(--color-background); color: var(--color-foreground); font-family: var(--font-sans); }
|
||||
15
docs/design-extract/storybook/tsconfig.json
Normal file
15
docs/design-extract/storybook/tsconfig.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"include": [
|
||||
"stories/**/*",
|
||||
".storybook/**/*"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue