create-pmos 0.636.0 → 0.637.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/bin/create-pmos.js +15 -1
- package/package.json +14 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/README.md +1 -1
- package/payload/design-system/README.md +31 -84
- package/payload/design-system/brand/README.md +46 -0
- package/payload/design-system/brand/tokens.css +4 -0
- package/{workspace/design-system → payload/design-system/brand}/tokens.json +6 -154
- package/payload/design-system/charts/README.md +75 -0
- package/payload/design-system/charts/components/Bar/README.md +48 -0
- package/payload/design-system/charts/components/Bar/preview.html +11 -0
- package/payload/design-system/charts/components/BarGoal/README.md +45 -0
- package/payload/design-system/charts/components/BarGoal/preview.html +11 -0
- package/payload/design-system/charts/components/Controls/README.md +12 -0
- package/payload/design-system/charts/components/Controls/preview.html +11 -0
- package/payload/design-system/charts/components/DateRanges/README.md +61 -0
- package/payload/design-system/charts/components/DateRanges/preview.html +11 -0
- package/payload/design-system/charts/components/Flow/README.md +50 -0
- package/payload/design-system/charts/components/Flow/preview.html +11 -0
- package/payload/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/payload/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/payload/design-system/charts/components/InBlock/README.md +10 -0
- package/payload/design-system/charts/components/InBlock/preview.html +11 -0
- package/payload/design-system/charts/components/Labels/README.md +13 -0
- package/payload/design-system/charts/components/Labels/preview.html +11 -0
- package/payload/design-system/charts/components/Line/README.md +114 -0
- package/payload/design-system/charts/components/Line/preview.html +11 -0
- package/payload/design-system/charts/components/Marks/README.md +12 -0
- package/payload/design-system/charts/components/Marks/preview.html +11 -0
- package/payload/design-system/charts/components/Media/README.md +20 -0
- package/payload/design-system/charts/components/Media/preview.html +11 -0
- package/payload/design-system/charts/components/Meter/README.md +32 -0
- package/payload/design-system/charts/components/Meter/preview.html +11 -0
- package/payload/design-system/charts/components/OnPage/README.md +12 -0
- package/payload/design-system/charts/components/OnPage/preview.html +11 -0
- package/payload/design-system/charts/components/OnSlide/README.md +11 -0
- package/payload/design-system/charts/components/OnSlide/preview.html +11 -0
- package/payload/design-system/charts/components/Roles/README.md +21 -0
- package/payload/design-system/charts/components/Roles/preview.html +11 -0
- package/payload/design-system/charts/components/Sparkline/README.md +43 -0
- package/payload/design-system/charts/components/Sparkline/preview.html +11 -0
- package/payload/design-system/charts/components/StackedBar/README.md +60 -0
- package/payload/design-system/charts/components/StackedBar/preview.html +11 -0
- package/payload/design-system/charts/components/Swimlane/README.md +81 -0
- package/payload/design-system/charts/components/Swimlane/preview.html +11 -0
- package/payload/design-system/charts/components/Timeline/README.md +50 -0
- package/payload/design-system/charts/components/Timeline/preview.html +11 -0
- package/payload/design-system/charts/components/bundle.css +116 -0
- package/payload/design-system/charts/components/bundle.js +225 -0
- package/payload/design-system/charts/interaction.md +38 -0
- package/payload/design-system/charts/spec.md +30 -0
- package/payload/design-system/charts/tokens.css +4 -0
- package/payload/design-system/charts/tokens.json +248 -0
- package/payload/design-system/documents/README.md +79 -0
- package/payload/design-system/documents/components/Asks/README.md +7 -0
- package/payload/design-system/documents/components/Asks/preview.html +11 -0
- package/payload/design-system/documents/components/Brief/README.md +19 -0
- package/payload/design-system/documents/components/Brief/preview.html +11 -0
- package/payload/design-system/documents/components/Callout/README.md +16 -0
- package/payload/design-system/documents/components/Callout/preview.html +11 -0
- package/payload/design-system/documents/components/Changes/README.md +7 -0
- package/payload/design-system/documents/components/Changes/preview.html +11 -0
- package/payload/design-system/documents/components/Checklist/README.md +7 -0
- package/payload/design-system/documents/components/Checklist/preview.html +11 -0
- package/payload/design-system/documents/components/Contents/README.md +7 -0
- package/payload/design-system/documents/components/Contents/preview.html +11 -0
- package/payload/design-system/documents/components/Decision/README.md +10 -0
- package/payload/design-system/documents/components/Decision/preview.html +11 -0
- package/payload/design-system/documents/components/Email/README.md +13 -0
- package/payload/design-system/documents/components/Email/preview.html +12 -0
- package/payload/design-system/documents/components/Figure/README.md +11 -0
- package/payload/design-system/documents/components/Figure/preview.html +11 -0
- package/payload/design-system/documents/components/Headings/README.md +10 -0
- package/payload/design-system/documents/components/Headings/preview.html +11 -0
- package/payload/design-system/documents/components/LongRead/README.md +7 -0
- package/payload/design-system/documents/components/LongRead/preview.html +11 -0
- package/payload/design-system/documents/components/Marks/README.md +10 -0
- package/payload/design-system/documents/components/Marks/preview.html +11 -0
- package/payload/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/payload/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/payload/design-system/documents/components/MetaStrip/README.md +7 -0
- package/payload/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/payload/design-system/documents/components/Notification/README.md +12 -0
- package/payload/design-system/documents/components/Notification/preview.html +12 -0
- package/payload/design-system/documents/components/OnePager/README.md +7 -0
- package/payload/design-system/documents/components/OnePager/preview.html +11 -0
- package/payload/design-system/documents/components/PRD/README.md +22 -0
- package/payload/design-system/documents/components/PRD/preview.html +11 -0
- package/payload/design-system/documents/components/Page/README.md +14 -0
- package/payload/design-system/documents/components/Page/preview.html +11 -0
- package/payload/design-system/documents/components/Quote/README.md +7 -0
- package/payload/design-system/documents/components/Quote/preview.html +11 -0
- package/payload/design-system/documents/components/Reading/README.md +11 -0
- package/payload/design-system/documents/components/Reading/preview.html +11 -0
- package/payload/design-system/documents/components/Report/README.md +18 -0
- package/payload/design-system/documents/components/Report/preview.html +11 -0
- package/payload/design-system/documents/components/SamplePRD/README.md +7 -0
- package/payload/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/SharedLink/README.md +11 -0
- package/payload/design-system/documents/components/SharedLink/preview.html +11 -0
- package/payload/design-system/documents/components/SlackPost/README.md +12 -0
- package/payload/design-system/documents/components/SlackPost/preview.html +13 -0
- package/payload/design-system/documents/components/Summary/README.md +11 -0
- package/payload/design-system/documents/components/Summary/preview.html +11 -0
- package/payload/design-system/documents/components/Table/README.md +12 -0
- package/payload/design-system/documents/components/Table/preview.html +11 -0
- package/payload/design-system/documents/components/Text/README.md +12 -0
- package/payload/design-system/documents/components/Text/preview.html +11 -0
- package/payload/design-system/documents/components/TypeScale/README.md +20 -0
- package/payload/design-system/documents/components/TypeScale/preview.html +11 -0
- package/payload/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/payload/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/bundle.css +152 -0
- package/payload/design-system/documents/components/bundle.js +36 -0
- package/payload/design-system/documents/messages.md +25 -0
- package/payload/design-system/documents/print.md +20 -0
- package/payload/design-system/documents/tokens.css +4 -0
- package/payload/design-system/documents/tokens.json +221 -0
- package/payload/design-system/slides/README.md +84 -0
- package/payload/design-system/slides/built-pmos.md +45 -0
- package/payload/design-system/slides/components/Answer/README.md +11 -0
- package/payload/design-system/slides/components/Answer/preview.html +8 -0
- package/payload/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/payload/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Asks/README.md +11 -0
- package/payload/design-system/slides/components/Asks/preview.html +8 -0
- package/payload/design-system/slides/components/BigNumber/README.md +12 -0
- package/payload/design-system/slides/components/BigNumber/preview.html +8 -0
- package/payload/design-system/slides/components/Callout/README.md +10 -0
- package/payload/design-system/slides/components/Callout/preview.html +8 -0
- package/payload/design-system/slides/components/Chart/README.md +15 -0
- package/payload/design-system/slides/components/Chart/preview.html +8 -0
- package/payload/design-system/slides/components/Checklist/README.md +11 -0
- package/payload/design-system/slides/components/Checklist/preview.html +8 -0
- package/payload/design-system/slides/components/Compare/README.md +11 -0
- package/payload/design-system/slides/components/Compare/preview.html +8 -0
- package/payload/design-system/slides/components/DecideDeck/README.md +15 -0
- package/payload/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Diagram/README.md +12 -0
- package/payload/design-system/slides/components/Diagram/preview.html +8 -0
- package/payload/design-system/slides/components/Evidence/README.md +11 -0
- package/payload/design-system/slides/components/Evidence/preview.html +8 -0
- package/payload/design-system/slides/components/Flow/README.md +11 -0
- package/payload/design-system/slides/components/Flow/preview.html +8 -0
- package/payload/design-system/slides/components/Footer/README.md +11 -0
- package/payload/design-system/slides/components/Footer/preview.html +8 -0
- package/payload/design-system/slides/components/FullLayout/README.md +9 -0
- package/payload/design-system/slides/components/FullLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Grid/README.md +12 -0
- package/payload/design-system/slides/components/Grid/preview.html +8 -0
- package/payload/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/payload/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Headline/README.md +11 -0
- package/payload/design-system/slides/components/Headline/preview.html +8 -0
- package/payload/design-system/slides/components/Icon/README.md +11 -0
- package/payload/design-system/slides/components/Icon/preview.html +8 -0
- package/payload/design-system/slides/components/ImageFrame/README.md +11 -0
- package/payload/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/payload/design-system/slides/components/ImageLayout/README.md +9 -0
- package/payload/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/payload/design-system/slides/components/LearnDeck/README.md +15 -0
- package/payload/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/payload/design-system/slides/components/LineChart/README.md +11 -0
- package/payload/design-system/slides/components/LineChart/preview.html +13 -0
- package/payload/design-system/slides/components/List/README.md +11 -0
- package/payload/design-system/slides/components/List/preview.html +8 -0
- package/payload/design-system/slides/components/Log/README.md +11 -0
- package/payload/design-system/slides/components/Log/preview.html +8 -0
- package/payload/design-system/slides/components/Mark/README.md +10 -0
- package/payload/design-system/slides/components/Mark/preview.html +8 -0
- package/payload/design-system/slides/components/NumberRow/README.md +10 -0
- package/payload/design-system/slides/components/NumberRow/preview.html +8 -0
- package/payload/design-system/slides/components/Numbers/README.md +11 -0
- package/payload/design-system/slides/components/Numbers/preview.html +8 -0
- package/payload/design-system/slides/components/Plan/README.md +11 -0
- package/payload/design-system/slides/components/Plan/preview.html +8 -0
- package/payload/design-system/slides/components/Quote/README.md +10 -0
- package/payload/design-system/slides/components/Quote/preview.html +8 -0
- package/payload/design-system/slides/components/Risks/README.md +11 -0
- package/payload/design-system/slides/components/Risks/preview.html +8 -0
- package/payload/design-system/slides/components/SampleDeck/README.md +10 -0
- package/payload/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/payload/design-system/slides/components/SectionLayout/README.md +9 -0
- package/payload/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/payload/design-system/slides/components/SourceLine/README.md +11 -0
- package/payload/design-system/slides/components/SourceLine/preview.html +8 -0
- package/payload/design-system/slides/components/SplitLayout/README.md +9 -0
- package/payload/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/payload/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/payload/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/payload/design-system/slides/components/StartDeck/README.md +15 -0
- package/payload/design-system/slides/components/StartDeck/preview.html +13 -0
- package/payload/design-system/slides/components/StatementLayout/README.md +9 -0
- package/payload/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Status/README.md +11 -0
- package/payload/design-system/slides/components/Status/preview.html +8 -0
- package/payload/design-system/slides/components/Table/README.md +12 -0
- package/payload/design-system/slides/components/Table/preview.html +10 -0
- package/payload/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/payload/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/payload/design-system/slides/components/TitleLayout/README.md +9 -0
- package/payload/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/payload/design-system/slides/components/TypeScale/README.md +11 -0
- package/payload/design-system/slides/components/TypeScale/preview.html +8 -0
- package/payload/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/payload/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Voices/README.md +11 -0
- package/payload/design-system/slides/components/Voices/preview.html +8 -0
- package/payload/design-system/slides/components/bundle.css +167 -0
- package/payload/design-system/slides/components/bundle.js +48 -0
- package/payload/design-system/slides/research.md +71 -0
- package/payload/design-system/slides/tokens.css +4 -0
- package/payload/design-system/slides/tokens.json +172 -0
- package/payload/design-system/ui/README.md +98 -0
- package/payload/design-system/ui/tokens.css +9 -0
- package/payload/design-system/ui/tokens.json +159 -0
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/ci-checks.sh +5 -3
- package/workspace/design-system/README.md +31 -84
- package/workspace/design-system/brand/README.md +46 -0
- package/workspace/design-system/brand/tokens.css +4 -0
- package/{payload/design-system → workspace/design-system/brand}/tokens.json +6 -154
- package/workspace/design-system/charts/README.md +75 -0
- package/workspace/design-system/charts/components/Bar/README.md +48 -0
- package/workspace/design-system/charts/components/Bar/preview.html +11 -0
- package/workspace/design-system/charts/components/BarGoal/README.md +45 -0
- package/workspace/design-system/charts/components/BarGoal/preview.html +11 -0
- package/workspace/design-system/charts/components/Controls/README.md +12 -0
- package/workspace/design-system/charts/components/Controls/preview.html +11 -0
- package/workspace/design-system/charts/components/DateRanges/README.md +61 -0
- package/workspace/design-system/charts/components/DateRanges/preview.html +11 -0
- package/workspace/design-system/charts/components/Flow/README.md +50 -0
- package/workspace/design-system/charts/components/Flow/preview.html +11 -0
- package/workspace/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/workspace/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/workspace/design-system/charts/components/InBlock/README.md +10 -0
- package/workspace/design-system/charts/components/InBlock/preview.html +11 -0
- package/workspace/design-system/charts/components/Labels/README.md +13 -0
- package/workspace/design-system/charts/components/Labels/preview.html +11 -0
- package/workspace/design-system/charts/components/Line/README.md +114 -0
- package/workspace/design-system/charts/components/Line/preview.html +11 -0
- package/workspace/design-system/charts/components/Marks/README.md +12 -0
- package/workspace/design-system/charts/components/Marks/preview.html +11 -0
- package/workspace/design-system/charts/components/Media/README.md +20 -0
- package/workspace/design-system/charts/components/Media/preview.html +11 -0
- package/workspace/design-system/charts/components/Meter/README.md +32 -0
- package/workspace/design-system/charts/components/Meter/preview.html +11 -0
- package/workspace/design-system/charts/components/OnPage/README.md +12 -0
- package/workspace/design-system/charts/components/OnPage/preview.html +11 -0
- package/workspace/design-system/charts/components/OnSlide/README.md +11 -0
- package/workspace/design-system/charts/components/OnSlide/preview.html +11 -0
- package/workspace/design-system/charts/components/Roles/README.md +21 -0
- package/workspace/design-system/charts/components/Roles/preview.html +11 -0
- package/workspace/design-system/charts/components/Sparkline/README.md +43 -0
- package/workspace/design-system/charts/components/Sparkline/preview.html +11 -0
- package/workspace/design-system/charts/components/StackedBar/README.md +60 -0
- package/workspace/design-system/charts/components/StackedBar/preview.html +11 -0
- package/workspace/design-system/charts/components/Swimlane/README.md +81 -0
- package/workspace/design-system/charts/components/Swimlane/preview.html +11 -0
- package/workspace/design-system/charts/components/Timeline/README.md +50 -0
- package/workspace/design-system/charts/components/Timeline/preview.html +11 -0
- package/workspace/design-system/charts/components/bundle.css +116 -0
- package/workspace/design-system/charts/components/bundle.js +225 -0
- package/workspace/design-system/charts/interaction.md +38 -0
- package/workspace/design-system/charts/spec.md +30 -0
- package/workspace/design-system/charts/tokens.css +4 -0
- package/workspace/design-system/charts/tokens.json +248 -0
- package/workspace/design-system/documents/README.md +79 -0
- package/workspace/design-system/documents/components/Asks/README.md +7 -0
- package/workspace/design-system/documents/components/Asks/preview.html +11 -0
- package/workspace/design-system/documents/components/Brief/README.md +19 -0
- package/workspace/design-system/documents/components/Brief/preview.html +11 -0
- package/workspace/design-system/documents/components/Callout/README.md +16 -0
- package/workspace/design-system/documents/components/Callout/preview.html +11 -0
- package/workspace/design-system/documents/components/Changes/README.md +7 -0
- package/workspace/design-system/documents/components/Changes/preview.html +11 -0
- package/workspace/design-system/documents/components/Checklist/README.md +7 -0
- package/workspace/design-system/documents/components/Checklist/preview.html +11 -0
- package/workspace/design-system/documents/components/Contents/README.md +7 -0
- package/workspace/design-system/documents/components/Contents/preview.html +11 -0
- package/workspace/design-system/documents/components/Decision/README.md +10 -0
- package/workspace/design-system/documents/components/Decision/preview.html +11 -0
- package/workspace/design-system/documents/components/Email/README.md +13 -0
- package/workspace/design-system/documents/components/Email/preview.html +12 -0
- package/workspace/design-system/documents/components/Figure/README.md +11 -0
- package/workspace/design-system/documents/components/Figure/preview.html +11 -0
- package/workspace/design-system/documents/components/Headings/README.md +10 -0
- package/workspace/design-system/documents/components/Headings/preview.html +11 -0
- package/workspace/design-system/documents/components/LongRead/README.md +7 -0
- package/workspace/design-system/documents/components/LongRead/preview.html +11 -0
- package/workspace/design-system/documents/components/Marks/README.md +10 -0
- package/workspace/design-system/documents/components/Marks/preview.html +11 -0
- package/workspace/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/workspace/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/workspace/design-system/documents/components/MetaStrip/README.md +7 -0
- package/workspace/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/workspace/design-system/documents/components/Notification/README.md +12 -0
- package/workspace/design-system/documents/components/Notification/preview.html +12 -0
- package/workspace/design-system/documents/components/OnePager/README.md +7 -0
- package/workspace/design-system/documents/components/OnePager/preview.html +11 -0
- package/workspace/design-system/documents/components/PRD/README.md +22 -0
- package/workspace/design-system/documents/components/PRD/preview.html +11 -0
- package/workspace/design-system/documents/components/Page/README.md +14 -0
- package/workspace/design-system/documents/components/Page/preview.html +11 -0
- package/workspace/design-system/documents/components/Quote/README.md +7 -0
- package/workspace/design-system/documents/components/Quote/preview.html +11 -0
- package/workspace/design-system/documents/components/Reading/README.md +11 -0
- package/workspace/design-system/documents/components/Reading/preview.html +11 -0
- package/workspace/design-system/documents/components/Report/README.md +18 -0
- package/workspace/design-system/documents/components/Report/preview.html +11 -0
- package/workspace/design-system/documents/components/SamplePRD/README.md +7 -0
- package/workspace/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/SharedLink/README.md +11 -0
- package/workspace/design-system/documents/components/SharedLink/preview.html +11 -0
- package/workspace/design-system/documents/components/SlackPost/README.md +12 -0
- package/workspace/design-system/documents/components/SlackPost/preview.html +13 -0
- package/workspace/design-system/documents/components/Summary/README.md +11 -0
- package/workspace/design-system/documents/components/Summary/preview.html +11 -0
- package/workspace/design-system/documents/components/Table/README.md +12 -0
- package/workspace/design-system/documents/components/Table/preview.html +11 -0
- package/workspace/design-system/documents/components/Text/README.md +12 -0
- package/workspace/design-system/documents/components/Text/preview.html +11 -0
- package/workspace/design-system/documents/components/TypeScale/README.md +20 -0
- package/workspace/design-system/documents/components/TypeScale/preview.html +11 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/bundle.css +152 -0
- package/workspace/design-system/documents/components/bundle.js +36 -0
- package/workspace/design-system/documents/messages.md +25 -0
- package/workspace/design-system/documents/print.md +20 -0
- package/workspace/design-system/documents/tokens.css +4 -0
- package/workspace/design-system/documents/tokens.json +221 -0
- package/workspace/design-system/slides/README.md +84 -0
- package/workspace/design-system/slides/built-pmos.md +45 -0
- package/workspace/design-system/slides/components/Answer/README.md +11 -0
- package/workspace/design-system/slides/components/Answer/preview.html +8 -0
- package/workspace/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/workspace/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Asks/README.md +11 -0
- package/workspace/design-system/slides/components/Asks/preview.html +8 -0
- package/workspace/design-system/slides/components/BigNumber/README.md +12 -0
- package/workspace/design-system/slides/components/BigNumber/preview.html +8 -0
- package/workspace/design-system/slides/components/Callout/README.md +10 -0
- package/workspace/design-system/slides/components/Callout/preview.html +8 -0
- package/workspace/design-system/slides/components/Chart/README.md +15 -0
- package/workspace/design-system/slides/components/Chart/preview.html +8 -0
- package/workspace/design-system/slides/components/Checklist/README.md +11 -0
- package/workspace/design-system/slides/components/Checklist/preview.html +8 -0
- package/workspace/design-system/slides/components/Compare/README.md +11 -0
- package/workspace/design-system/slides/components/Compare/preview.html +8 -0
- package/workspace/design-system/slides/components/DecideDeck/README.md +15 -0
- package/workspace/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Diagram/README.md +12 -0
- package/workspace/design-system/slides/components/Diagram/preview.html +8 -0
- package/workspace/design-system/slides/components/Evidence/README.md +11 -0
- package/workspace/design-system/slides/components/Evidence/preview.html +8 -0
- package/workspace/design-system/slides/components/Flow/README.md +11 -0
- package/workspace/design-system/slides/components/Flow/preview.html +8 -0
- package/workspace/design-system/slides/components/Footer/README.md +11 -0
- package/workspace/design-system/slides/components/Footer/preview.html +8 -0
- package/workspace/design-system/slides/components/FullLayout/README.md +9 -0
- package/workspace/design-system/slides/components/FullLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Grid/README.md +12 -0
- package/workspace/design-system/slides/components/Grid/preview.html +8 -0
- package/workspace/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/workspace/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Headline/README.md +11 -0
- package/workspace/design-system/slides/components/Headline/preview.html +8 -0
- package/workspace/design-system/slides/components/Icon/README.md +11 -0
- package/workspace/design-system/slides/components/Icon/preview.html +8 -0
- package/workspace/design-system/slides/components/ImageFrame/README.md +11 -0
- package/workspace/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/workspace/design-system/slides/components/ImageLayout/README.md +9 -0
- package/workspace/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/workspace/design-system/slides/components/LearnDeck/README.md +15 -0
- package/workspace/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/LineChart/README.md +11 -0
- package/workspace/design-system/slides/components/LineChart/preview.html +13 -0
- package/workspace/design-system/slides/components/List/README.md +11 -0
- package/workspace/design-system/slides/components/List/preview.html +8 -0
- package/workspace/design-system/slides/components/Log/README.md +11 -0
- package/workspace/design-system/slides/components/Log/preview.html +8 -0
- package/workspace/design-system/slides/components/Mark/README.md +10 -0
- package/workspace/design-system/slides/components/Mark/preview.html +8 -0
- package/workspace/design-system/slides/components/NumberRow/README.md +10 -0
- package/workspace/design-system/slides/components/NumberRow/preview.html +8 -0
- package/workspace/design-system/slides/components/Numbers/README.md +11 -0
- package/workspace/design-system/slides/components/Numbers/preview.html +8 -0
- package/workspace/design-system/slides/components/Plan/README.md +11 -0
- package/workspace/design-system/slides/components/Plan/preview.html +8 -0
- package/workspace/design-system/slides/components/Quote/README.md +10 -0
- package/workspace/design-system/slides/components/Quote/preview.html +8 -0
- package/workspace/design-system/slides/components/Risks/README.md +11 -0
- package/workspace/design-system/slides/components/Risks/preview.html +8 -0
- package/workspace/design-system/slides/components/SampleDeck/README.md +10 -0
- package/workspace/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/workspace/design-system/slides/components/SectionLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/workspace/design-system/slides/components/SourceLine/README.md +11 -0
- package/workspace/design-system/slides/components/SourceLine/preview.html +8 -0
- package/workspace/design-system/slides/components/SplitLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/workspace/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/workspace/design-system/slides/components/StartDeck/README.md +15 -0
- package/workspace/design-system/slides/components/StartDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/StatementLayout/README.md +9 -0
- package/workspace/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Status/README.md +11 -0
- package/workspace/design-system/slides/components/Status/preview.html +8 -0
- package/workspace/design-system/slides/components/Table/README.md +12 -0
- package/workspace/design-system/slides/components/Table/preview.html +10 -0
- package/workspace/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/workspace/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/workspace/design-system/slides/components/TitleLayout/README.md +9 -0
- package/workspace/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/workspace/design-system/slides/components/TypeScale/README.md +11 -0
- package/workspace/design-system/slides/components/TypeScale/preview.html +8 -0
- package/workspace/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/workspace/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Voices/README.md +11 -0
- package/workspace/design-system/slides/components/Voices/preview.html +8 -0
- package/workspace/design-system/slides/components/bundle.css +167 -0
- package/workspace/design-system/slides/components/bundle.js +48 -0
- package/workspace/design-system/slides/research.md +71 -0
- package/workspace/design-system/slides/tokens.css +4 -0
- package/workspace/design-system/slides/tokens.json +172 -0
- package/workspace/design-system/ui/README.md +98 -0
- package/workspace/design-system/ui/tokens.css +9 -0
- package/workspace/design-system/ui/tokens.json +159 -0
- package/workspace/guide/agent-capabilities.md +1 -1
- package/workspace/guide/layout.md +10 -2
- package/workspace/guide/reports.md +1 -1
- package/workspace/lib/core-docs.js +9 -0
- package/workspace/lib/design-system.js +235 -76
- package/workspace/lib/live-round.js +2 -2
- package/workspace/lib/routes-report-design.js +9 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/brand.css +8 -0
- package/workspace/public/pm/charts.css +130 -0
- package/workspace/public/pm/documents.css +170 -0
- package/workspace/public/pm/komorebi.css +7 -10
- package/workspace/public/pm/slides.css +169 -0
- package/workspace/test-lists/design-system.json +1 -1
- package/payload/design-system/tokens.css +0 -9
- package/workspace/design-system/tokens.css +0 -9
- /package/payload/design-system/{components → ui/components}/Badge/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Badge/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Button/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Button/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Calendar/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Calendar/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Chart/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Chart/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Conversation/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Conversation/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Detail/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Detail/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Document/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Document/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Event/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Event/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Field/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Field/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Icon/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Icon/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Input/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Input/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/List/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/List/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/ListRow/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/ListRow/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/MainItem/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/MainItem/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/MainSide/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/MainSide/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Menu/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Menu/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Navigation/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Navigation/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Number/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Number/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Settings/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Settings/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/SingleColumn/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/SingleColumn/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Stage/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Stage/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Suggestion/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Suggestion/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Summary/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Summary/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Switch/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Switch/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Table/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Table/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Tabs/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Tabs/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Timeline/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Timeline/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Toast/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Toast/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/TodayPage/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/TodayPage/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/bundle.css +0 -0
- /package/payload/design-system/{interactions.md → ui/interactions.md} +0 -0
- /package/payload/design-system/{pages.md → ui/pages.md} +0 -0
- /package/workspace/design-system/{components → ui/components}/Badge/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Badge/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Button/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Button/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Calendar/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Calendar/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Chart/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Chart/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Conversation/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Conversation/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Detail/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Detail/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Document/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Document/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Event/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Event/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Field/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Field/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Icon/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Icon/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Input/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Input/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/List/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/List/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/ListRow/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/ListRow/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/MainItem/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/MainItem/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/MainSide/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/MainSide/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Menu/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Menu/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Navigation/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Navigation/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Number/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Number/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Settings/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Settings/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/SingleColumn/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/SingleColumn/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Stage/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Stage/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Suggestion/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Suggestion/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Summary/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Summary/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Switch/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Switch/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Table/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Table/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Tabs/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Tabs/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Timeline/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Timeline/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Toast/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Toast/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/TodayPage/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/TodayPage/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/bundle.css +0 -0
- /package/workspace/design-system/{interactions.md → ui/interactions.md} +0 -0
- /package/workspace/design-system/{pages.md → ui/pages.md} +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "PMOS Komorebi",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"meta": {
|
|
5
|
+
"source": "PMOS Komorebi v5, the UI system. Imports colour, fonts and motion from brand/ and chart roles from charts/; defines type sizes, space, corners, shadow and its parts."
|
|
6
|
+
},
|
|
7
|
+
"type": {
|
|
8
|
+
"groups": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Workspace",
|
|
11
|
+
"family": "sans",
|
|
12
|
+
"styles": [
|
|
13
|
+
{
|
|
14
|
+
"name": "title",
|
|
15
|
+
"fontSize": "26px",
|
|
16
|
+
"lineHeight": "32px",
|
|
17
|
+
"fontWeight": 600,
|
|
18
|
+
"usage": "One per page: the greeting or page name.",
|
|
19
|
+
"sample": "Good evening"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "heading",
|
|
23
|
+
"fontSize": "18px",
|
|
24
|
+
"lineHeight": "24px",
|
|
25
|
+
"fontWeight": 600,
|
|
26
|
+
"usage": "Block headings: Today’s log, This sprint.",
|
|
27
|
+
"sample": "Today’s log"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "body",
|
|
31
|
+
"fontSize": "15px",
|
|
32
|
+
"lineHeight": "24px",
|
|
33
|
+
"fontWeight": 400,
|
|
34
|
+
"usage": "Row titles (600), sentences, PMOS summaries.",
|
|
35
|
+
"sample": "Start with Admin APIs for Commerce and Jarvis."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "small",
|
|
39
|
+
"fontSize": "13px",
|
|
40
|
+
"lineHeight": "20px",
|
|
41
|
+
"fontWeight": 400,
|
|
42
|
+
"usage": "Why lines, meta, badges, tabs, counts. Never smaller.",
|
|
43
|
+
"sample": "for Tender new CIAM · 21 days late"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "code",
|
|
47
|
+
"family": "mono",
|
|
48
|
+
"fontSize": "13px",
|
|
49
|
+
"lineHeight": "20px",
|
|
50
|
+
"fontWeight": 400,
|
|
51
|
+
"usage": "Keys, ids, token names.",
|
|
52
|
+
"sample": "CONHUB-233"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"spacing": {
|
|
59
|
+
"tokens": [
|
|
60
|
+
{
|
|
61
|
+
"name": "space-4",
|
|
62
|
+
"value": "4px",
|
|
63
|
+
"usage": "Icon to text inside a chip."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "space-8",
|
|
67
|
+
"value": "8px",
|
|
68
|
+
"usage": "Between buttons; row inner gap."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "space-12",
|
|
72
|
+
"value": "12px",
|
|
73
|
+
"usage": "Between panels; row padding."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "space-16",
|
|
77
|
+
"value": "16px",
|
|
78
|
+
"usage": "Between blocks; card padding."
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "space-24",
|
|
82
|
+
"value": "24px",
|
|
83
|
+
"usage": "Between groups inside a panel."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "space-32",
|
|
87
|
+
"value": "32px",
|
|
88
|
+
"usage": "Panel padding."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "space-48",
|
|
92
|
+
"value": "48px",
|
|
93
|
+
"usage": "Space above a page title on wide screens."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "space-64",
|
|
97
|
+
"value": "64px",
|
|
98
|
+
"usage": "Empty-state breathing room."
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"radius": {
|
|
103
|
+
"tokens": [
|
|
104
|
+
{
|
|
105
|
+
"name": "radius-sm",
|
|
106
|
+
"value": "6px",
|
|
107
|
+
"usage": "Buttons, badges, tab items."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "radius-md",
|
|
111
|
+
"value": "10px",
|
|
112
|
+
"usage": "Rows, inputs, events, toasts."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "radius-card",
|
|
116
|
+
"value": "16px",
|
|
117
|
+
"usage": "Blocks and cards."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "radius-panel",
|
|
121
|
+
"value": "24px",
|
|
122
|
+
"usage": "Panels and the rail."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "radius-pill",
|
|
126
|
+
"value": "999px",
|
|
127
|
+
"usage": "Counts, chips, switches."
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"shadow": {
|
|
132
|
+
"tokens": [
|
|
133
|
+
{
|
|
134
|
+
"name": "raise",
|
|
135
|
+
"value": {
|
|
136
|
+
"light": "0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14)",
|
|
137
|
+
"dark": "0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08)"
|
|
138
|
+
},
|
|
139
|
+
"usage": "Now: cards, panels, the chosen tab, the next event."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "lift",
|
|
143
|
+
"value": {
|
|
144
|
+
"light": "0 10px 28px -10px rgba(42,46,53,.28)",
|
|
145
|
+
"dark": "0 10px 28px -10px rgba(0,0,0,.6)"
|
|
146
|
+
},
|
|
147
|
+
"usage": "Things over things: toast, sheet, menu, slide-over."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "glow",
|
|
151
|
+
"value": {
|
|
152
|
+
"light": "0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)",
|
|
153
|
+
"dark": "0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)"
|
|
154
|
+
},
|
|
155
|
+
"usage": "The leaf ring: keyboard focus and the one thing that is now."
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -213,7 +213,7 @@ What each part does:
|
|
|
213
213
|
|
|
214
214
|
- **The design sprint runs silently.** Each run works out from the initiative who the prototype is for and the one question it must answer, uses real content from the initiative, and keeps the fidelity just real enough to react to. None of that is a step you fill in. PMOS only recommends, as one ✦ on the canvas, for example "Try it on 3 to 5 people it is for", with a test link to copy.
|
|
215
215
|
- **What the run makes.** One run makes the prototype first, then the flow (`flow.json`), who does what (`lanes.json`) and the sliders (`tweaks.json`). PMOS reads the page copy (`copy.json`) from the prototype's own words, so the two always agree. A file that is not well formed is "not made" with the reason, and the prototype still shows.
|
|
216
|
-
- **What the run gets.** Each run gets the PMOS design system
|
|
216
|
+
- **What the run gets.** Each run gets the PMOS design system for pages and its charts: the stylesheet and the rules (one lit thing per screen, icon-only buttons, the assistant is PMOS). A product that keeps its own copy of the system in `pmos/design-system/` gets its own brand (colours and fonts) with PMOS's parts. A product with only its own token sheet keeps its own look. The idle lab's prototypes get the same. The run also gets the initiative's name and the product's Intent, the files you attached, the element you pointed at, and your copy edits and sliders. A prototype must fit a 390 px phone screen.
|
|
217
217
|
- **What the run can do.** A run can only read and write in its own folder in the runtime folder, plus the last version and the files you attached. It has no shell, no web and nothing that sends. Nothing goes into a product repository before your ✓.
|
|
218
218
|
- **What the canvas can do.** The prototype runs in a sandboxed frame. It cannot reach PMOS. The canvas talks to it only to show a screen, point, pin, play and apply your edits.
|
|
219
219
|
- **Your prototype rules.** After a version renders and before it opens, PMOS checks it against your prototype rules: no device or browser frame, no instructions on the screen, no sample copy, and each rule PMOS learns from your corrections. When a correction is true of every prototype (for example "no device frame"), the chat adds it as a rule (`pmos lab rule add`). PMOS keeps a rule only when it fails a bad example and passes a good one, so a button such as "See the week" is never read as an instruction. A change to one version ("make the alert orange") or a taste ("calmer") never becomes a rule. A version that breaks a rule gets one fix run, given only the lines that broke it. You see only the fixed version, with one quiet line: "PMOS fixed 3 things before showing you this." When the fix does not reach a rule, the version still opens and the line names the rule it breaks. When nothing was fixed, there is no line. Settings › PMOS › Prototype rules lists the rules with Undo.
|
|
@@ -11,9 +11,17 @@ PMOS has four places: **Today**, **Work**, **Goals** and **Events**. PMOS opens
|
|
|
11
11
|
|
|
12
12
|
## The design system
|
|
13
13
|
|
|
14
|
-
PMOS has one
|
|
14
|
+
PMOS has one family of design systems, agreed on 2026-11-20. Its files are in the workspace's `design-system/` folder, in five parts:
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
- `brand/`: the colours, the fonts, the motion, the voice and the icons. Every other part uses them.
|
|
17
|
+
- `charts/`: every chart and diagram, on screen, on a slide and on paper.
|
|
18
|
+
- `ui/`: the pages and the prototypes (Komorebi).
|
|
19
|
+
- `documents/`: PRDs, briefs, reports, notes and shared links, and the rules for emails, Slack messages and notifications.
|
|
20
|
+
- `slides/`: decks.
|
|
21
|
+
|
|
22
|
+
Read `design-system/README.md` first. Each kit gets a copy in `pmos/design-system/`, so another project or session can use it. A product may change `brand/` only. The other parts follow it.
|
|
23
|
+
|
|
24
|
+
The workspace has one stylesheet for each part: `pm/brand.css`, `pm/charts.css`, `pm/komorebi.css`, `pm/documents.css` and `pm/slides.css`. They are made from those files. A page moves to the UI system when it loads brand, charts and komorebi, in that order, and puts `pm-ds` on its root. Pages move one at a time, and a page that has not moved looks as it did.
|
|
17
25
|
|
|
18
26
|
## The navigation
|
|
19
27
|
|
|
@@ -158,7 +158,7 @@ See also **Design how a report looks**, **Set up a report by asking** and **Read
|
|
|
158
158
|
|
|
159
159
|
A report that you set up has a design. The design tells PMOS how the report looks: a slide deck or a document, the order of the slides, and the style. PMOS reads the design each cycle and draws the draft to match it. The data comes from the cycle. The design does not change the data.
|
|
160
160
|
|
|
161
|
-
There is no template to fill in. You describe the report, add samples, and refine it until it looks right.
|
|
161
|
+
There is no template to fill in. You describe the report, add samples, and refine it until it looks right. When your words and samples say nothing about the look, PMOS draws a deck in the PMOS slide design and a document in the PMOS document design, with the PMOS chart design for charts.
|
|
162
162
|
|
|
163
163
|
### Open the design studio
|
|
164
164
|
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
*/
|
|
34
34
|
const fs = require('fs');
|
|
35
35
|
const path = require('path');
|
|
36
|
+
const DS = require('./design-system.js');
|
|
36
37
|
|
|
37
38
|
const LEDGER = 'core-docs.jsonl';
|
|
38
39
|
const DIR = 'core-docs';
|
|
@@ -567,6 +568,12 @@ function stageGuide(entry) {
|
|
|
567
568
|
};
|
|
568
569
|
}
|
|
569
570
|
|
|
571
|
+
/** A core document is a PMOS document: the content rules of PMOS Documents (design-system-family), as rule 6. */
|
|
572
|
+
function docRules() {
|
|
573
|
+
const r = DS.writingRulesFor('prd');
|
|
574
|
+
return r ? ['6. ' + r.split('\n')[0], ...r.split('\n').slice(1).map((l) => ' ' + l)] : [];
|
|
575
|
+
}
|
|
576
|
+
|
|
570
577
|
/** The prompt of one core-doc run (origin core-doc:<scope>:<key>). */
|
|
571
578
|
function runPrompt(entry, scope, { today, label } = {}) {
|
|
572
579
|
const g = (entry.stage ? stageGuide(entry) : GUIDE[entry.key]) || { sources: ['The repository files that hold this level\'s work'], sections: ['A short summary'] };
|
|
@@ -594,6 +601,7 @@ function runPrompt(entry, scope, { today, label } = {}) {
|
|
|
594
601
|
' PMOS_DOC',
|
|
595
602
|
' If it refuses, read the reason, fix the document and write it once more. Do not work around a refusal.',
|
|
596
603
|
'5. Short sentences. Dates in full (14 October 2026). No more than about 600 words.',
|
|
604
|
+
...docRules(),
|
|
597
605
|
'',
|
|
598
606
|
'Finish with one line: the path the command printed, or why you wrote nothing.',
|
|
599
607
|
];
|
|
@@ -633,6 +641,7 @@ function batchPrompt(entries, scope, { today, label } = {}) {
|
|
|
633
641
|
' PMOS_DOC',
|
|
634
642
|
' If it refuses, read the reason, fix the document and write it once more. Do not work around a refusal. If the command cannot run at all, stop and say why.',
|
|
635
643
|
'5. Short sentences. Dates in full (14 October 2026). No more than about 600 words per document.',
|
|
644
|
+
...docRules(),
|
|
636
645
|
'',
|
|
637
646
|
'Finish with one line per document: the path the command printed, or why you wrote nothing.',
|
|
638
647
|
);
|
|
@@ -1,34 +1,65 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
/* design-system.js — the PMOS
|
|
3
|
-
* (Wawan 2026-11-19: "differentiate between the UI design system and slide design system"), so nothing here is about decks.
|
|
2
|
+
/* design-system.js — the PMOS design system family as code can use it (agreed 2026-11-20, /mnt/project-files/design-system/family-build-spec.md).
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
4
|
+
* workspace/design-system/ holds five systems and an index README:
|
|
5
|
+
* brand/ the root: colour (light, dark, ground by time of day), font families, motion speeds and easing, voice and icon rules
|
|
6
|
+
* charts/ PMOS Charts, under brand: the ONLY owner of the chart-* and diagram-* tokens
|
|
7
|
+
* ui/ PMOS Komorebi, the UI system: type sizes, space, corners, shadow and its 29 parts
|
|
8
|
+
* documents/ PMOS Documents: reading and print sizes, the page, the parts, and the Messages rules (messages.md)
|
|
9
|
+
* slides/ PMOS Slides: the 1920 x 1080 grid, slide sizes, blocks and deck patterns
|
|
10
|
+
* ui, documents and slides import brand and charts by name and never redefine their tokens. A token two systems share (a shadow, a corner)
|
|
11
|
+
* has one value. design-system.test.js holds all of this (the drift check).
|
|
12
|
+
*
|
|
13
|
+
* Each system's tokens.json makes its tokens.css (written here, never by hand). Each system makes one workspace sheet in public/pm:
|
|
14
|
+
* brand.css, charts.css, komorebi.css (ui), documents.css, slides.css — loaded in that order: brand, charts, then the system's own.
|
|
15
|
+
* Every rule is scoped: ui to .pm-ds, documents to .pmd-ds, slides to .pms-ds; brand and charts to any of them (charts alone: .pmc-ds).
|
|
16
|
+
* A page changes only when it puts the class on its root. The fonts are the self-hosted ones in public/vendor (no network).
|
|
17
|
+
*
|
|
18
|
+
* The family travels three ways, all from that one folder:
|
|
19
|
+
* 1. the workspace: the generated sheets (above), and public/pm/komorebi.js for the UI parts' behaviour.
|
|
20
|
+
* 2. PMOS makers: designSystemFor(kind, roots) gives a maker the sheets and rules for what it makes (prototype runs, the report design job,
|
|
21
|
+
* the document drafts). A product's own brand/ wins; the other four come from PMOS's own copy when there is one.
|
|
13
22
|
* 3. other projects: kit/build-kit.sh copies the folder into every kit as pmos/design-system/ (create-pmos KERNEL).
|
|
14
23
|
*
|
|
15
|
-
* node lib/design-system.js --write regenerate public/pm
|
|
16
|
-
* node lib/design-system.js --check exit 1 when
|
|
24
|
+
* node lib/design-system.js --write regenerate every tokens.css and public/pm sheet after a change to the system's files
|
|
25
|
+
* node lib/design-system.js --check exit 1 when any of them is not what the files make (design-system.test.js)
|
|
17
26
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
27
|
+
* KINDS · SYSTEMS · designSystemFor(kind, roots) → { kind, systems, css, rules, from, ds } · writingRulesFor(kind, roots) → the content rules only
|
|
28
|
+
* dirOf(roots) → the first <root>/{pmos/design-system, design-system, workspace/design-system} that holds the family, or null
|
|
29
|
+
* scaffoldOf(roots) → designSystemFor('prototype') from roots only (no fallback to PMOS's own): empty when no root has the family
|
|
30
|
+
* tokensCss(json, name) PURE · sheetOf(system, tokensBySystem, bundle) PURE · generated(dir) → { path: text }
|
|
21
31
|
*/
|
|
22
32
|
const fs = require('fs');
|
|
23
33
|
const path = require('path');
|
|
24
34
|
|
|
25
35
|
const OWN = path.join(__dirname, '..', 'design-system');
|
|
26
|
-
const
|
|
36
|
+
const PUBLIC = path.join(__dirname, '..', 'public', 'pm');
|
|
37
|
+
const SHEET = path.join(PUBLIC, 'komorebi.css');
|
|
27
38
|
const SCOPE = '.pm-ds';
|
|
28
|
-
// where a product keeps the
|
|
39
|
+
// where a product keeps the family: the kit's copy first (create-pmos), then a folder of its own, then PMOS-self's
|
|
29
40
|
const PLACES = ['pmos/design-system', 'design-system', 'workspace/design-system'];
|
|
41
|
+
const FAMILY = ':is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds)';
|
|
42
|
+
|
|
43
|
+
/** The five systems. scope: the class a page puts on its root. roots: the selectors the system's own files use for the page root (they
|
|
44
|
+
* become the scope). sheet: the generated file in public/pm. use: how a maker wraps its output in the unscoped sheet. */
|
|
45
|
+
const SYSTEMS = Object.freeze({
|
|
46
|
+
brand: { title: 'PMOS Brand', sheet: 'brand.css', scope: FAMILY, roots: [] },
|
|
47
|
+
charts: { title: 'PMOS Charts', sheet: 'charts.css', scope: FAMILY, roots: ['.pcx'], use: 'Charts and diagrams are PMOS Charts parts (pc-* classes; the roles chart-read, chart-done, chart-plan, chart-risk, chart-rest).' },
|
|
48
|
+
ui: { title: 'PMOS Komorebi', sheet: 'komorebi.css', scope: SCOPE, roots: ['.pm'], types: true, use: 'Wrap the page in <body class="pm">.' },
|
|
49
|
+
documents: { title: 'PMOS Documents', sheet: 'documents.css', scope: '.pmd-ds', roots: ['.pd'], use: 'Wrap the document in <body class="pd"> and put it in <article class="pd-doc">; build only from the pd-* classes.' },
|
|
50
|
+
slides: { title: 'PMOS Slides', sheet: 'slides.css', scope: '.pms-ds', roots: ['.ps'], use: 'Wrap the deck in <body class="ps">; one <section class="ps-slide"> per slide, drawn at 1920 x 1080 and scaled; build only from the ps-* classes.' },
|
|
51
|
+
});
|
|
52
|
+
const ORDER = ['brand', 'charts', 'ui', 'documents', 'slides'];
|
|
30
53
|
|
|
31
|
-
/**
|
|
54
|
+
/** What each kind of output is made with (family-build-spec.md, "Picking the system"). messages: the rules only, no sheet. */
|
|
55
|
+
const KINDS = Object.freeze({
|
|
56
|
+
page: ['ui', 'charts'], prototype: ['ui', 'charts'],
|
|
57
|
+
prd: ['documents', 'charts'], brief: ['documents', 'charts'], report: ['documents', 'charts'], notes: ['documents', 'charts'], 'shared-link': ['documents', 'charts'],
|
|
58
|
+
deck: ['slides', 'charts'],
|
|
59
|
+
email: ['messages'], slack: ['messages'], notification: ['messages'],
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** The short form of ui/README.md that a prototype run follows (the whole README is in the folder for a person or a long session). */
|
|
32
63
|
const RULES = [
|
|
33
64
|
'Follow the PMOS design system (the stylesheet below is its tokens and parts):',
|
|
34
65
|
'- Wrap the page in <body class="pm">. Build only from the system\'s classes: pm-btn, pm-input, pm-badge, pm-li, pm-tabs, pm-field, pm-toast, pm-menu, pm-sug, pm-ev, pm-block, pm-table, pm-num, pm-cal, pm-chart, pm-leg, pm-tip, pm-pick, pm-doc, pm-stage, pm-rail; type classes title, heading, body, small. If you need something no part does, add an option to a part, not a new look.',
|
|
@@ -39,39 +70,65 @@ const RULES = [
|
|
|
39
70
|
'- Write from the person\'s side in short plain sentences ("Moved to tomorrow", not "Success"). The assistant is PMOS, never "Claude".',
|
|
40
71
|
].join('\n');
|
|
41
72
|
|
|
42
|
-
|
|
73
|
+
const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
|
|
74
|
+
const readJson = (f) => { try { return JSON.parse(fs.readFileSync(f, 'utf8')); } catch { return null; } };
|
|
75
|
+
const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, '').replace(/\n\s*\n+/g, '\n').trim();
|
|
76
|
+
// the systems load their fonts from Google Fonts; a maker is sandboxed with no network and the workspace self-hosts them
|
|
77
|
+
const dropImports = (css) => String(css || '').replace(/^@import\b.*$\n?/gm, ''); // the whole line: a font URL can hold a ';'
|
|
78
|
+
const has = (d, sys) => !!d && fs.existsSync(path.join(d, sys, 'tokens.json'));
|
|
79
|
+
|
|
80
|
+
/** The first folder under roots that holds the family (its ui system and brand), or null. */
|
|
43
81
|
function dirOf(roots) {
|
|
44
82
|
for (const r of roots || []) {
|
|
45
83
|
if (!r) continue;
|
|
46
|
-
for (const p of PLACES) {
|
|
47
|
-
const d = path.join(r, p);
|
|
48
|
-
if (fs.existsSync(path.join(d, 'tokens.css')) && fs.existsSync(path.join(d, 'components', 'bundle.css'))) return d;
|
|
49
|
-
}
|
|
84
|
+
for (const p of PLACES) { const d = path.join(r, p); if (has(d, 'brand') && fs.existsSync(path.join(d, 'ui', 'components', 'bundle.css'))) return d; }
|
|
50
85
|
}
|
|
51
86
|
return null;
|
|
52
87
|
}
|
|
88
|
+
const dirsOf = (roots) => (roots || []).filter(Boolean).flatMap((r) => PLACES.map((p) => path.join(r, p))).filter((d) => has(d, 'brand') || has(d, 'ui'));
|
|
53
89
|
|
|
54
|
-
|
|
55
|
-
// the system loads its fonts from Google Fonts; a prototype is sandboxed with no network and the workspace self-hosts them
|
|
56
|
-
const dropImports = (css) => String(css || '').replace(/^@import[^;]*;\s*/gm, '');
|
|
57
|
-
const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
|
|
90
|
+
/* ── tokens ── */
|
|
58
91
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
92
|
+
const SECTIONS = ['color', 'shadow', 'spacing', 'radius', 'duration', 'easing'];
|
|
93
|
+
/** Every token a system's tokens.json defines: name → value (a string, or { light, dark }). The font families become font-sans / font-mono. */
|
|
94
|
+
function tokensOf(json) {
|
|
95
|
+
const out = new Map();
|
|
96
|
+
for (const s of SECTIONS) for (const t of ((json && json[s]) || {}).tokens || []) out.set(t.name, t.value);
|
|
97
|
+
const fam = json && json.type && json.type.families;
|
|
98
|
+
if (fam) for (const [k, v] of Object.entries(fam)) out.set('font-' + k, v);
|
|
99
|
+
return out;
|
|
63
100
|
}
|
|
64
101
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
102
|
+
// a token can name another one: "{blue}" is the brand's blue, so the chart role follows the brand in both themes
|
|
103
|
+
const valueOf = (v) => String(v).replace(/\{([a-z0-9-]+)\}/g, 'var(--$1)');
|
|
104
|
+
/** PURE. A system's tokens.json → its tokens.css: the themed tokens (light, then dark), the rest, and (ui only) the type classes. */
|
|
105
|
+
function tokensCss(json, name) {
|
|
106
|
+
const light = [], dark = [], rest = [];
|
|
107
|
+
const themed = new Set(['color', 'shadow']);
|
|
108
|
+
for (const s of SECTIONS) {
|
|
109
|
+
for (const t of ((json && json[s]) || {}).tokens || []) {
|
|
110
|
+
const v = t.value;
|
|
111
|
+
if (v && typeof v === 'object') { light.push(`--${t.name}:${valueOf(v.light)}`); dark.push(`--${t.name}:${valueOf(v.dark)}`); }
|
|
112
|
+
else (themed.has(s) ? light : rest).push(`--${t.name}:${valueOf(v)}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const fam = json && json.type && json.type.families;
|
|
116
|
+
if (fam) for (const [k, v] of Object.entries(fam)) rest.push(`--font-${k}:${v}`);
|
|
117
|
+
const L = [`/* ${(SYSTEMS[name] || {}).title || name} tokens. GENERATED from tokens.json by lib/design-system.js: do not edit; run \`node lib/design-system.js --write\`. */`];
|
|
118
|
+
if (light.length) L.push(`:root, [data-theme="light"] {${light.join(';')}}`);
|
|
119
|
+
if (dark.length) L.push(`[data-theme="dark"] {${dark.join(';')}}`);
|
|
120
|
+
if (rest.length) L.push(`:root {${rest.join(';')}}`);
|
|
121
|
+
if ((SYSTEMS[name] || {}).types) {
|
|
122
|
+
for (const g of ((json && json.type) || {}).groups || []) {
|
|
123
|
+
for (const st of g.styles || []) L.push(`.${st.name}{font-family:var(--font-${st.family || g.family || 'sans'});font-size:${st.fontSize};line-height:${st.lineHeight};font-weight:${st.fontWeight}}`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return L.join('\n') + '\n';
|
|
70
127
|
}
|
|
71
128
|
|
|
72
|
-
/* ── the workspace
|
|
129
|
+
/* ── the workspace sheets ── */
|
|
73
130
|
|
|
74
|
-
/** Split CSS into top-level pieces: {
|
|
131
|
+
/** Split CSS into top-level pieces: { sel, body } for a rule or a block at-rule, { raw } for a statement. */
|
|
75
132
|
function pieces(css) {
|
|
76
133
|
const out = [], s = stripComments(css);
|
|
77
134
|
let i = 0;
|
|
@@ -89,57 +146,159 @@ function pieces(css) {
|
|
|
89
146
|
return out;
|
|
90
147
|
}
|
|
91
148
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if (t === '[data-theme="
|
|
97
|
-
if (t === '
|
|
98
|
-
if (t === '*') return `${
|
|
99
|
-
|
|
149
|
+
const darkOf = (S) => `${S}.dark, html.dark ${S}, :root[data-theme="dark"] ${S}`;
|
|
150
|
+
/** One selector, scoped: the page-root selectors become the scope, everything else sits inside it. */
|
|
151
|
+
function scopeSel(sel, sys) {
|
|
152
|
+
const S = sys.scope, t = sel.trim();
|
|
153
|
+
if (t === ':root' || t === '[data-theme="light"]' || t === 'body') return S;
|
|
154
|
+
if (t === '[data-theme="dark"]') return darkOf(S);
|
|
155
|
+
if (t === '*') return `${S} *`;
|
|
156
|
+
for (const r of sys.roots || []) {
|
|
157
|
+
if (t === r) return S;
|
|
158
|
+
const m = new RegExp('^' + r.replace(/\./g, '\\.') + '(?=[\\s:>+~\\[.])').exec(t);
|
|
159
|
+
if (m) return S + t.slice(r.length);
|
|
160
|
+
}
|
|
161
|
+
return `${S} ${t}`;
|
|
100
162
|
}
|
|
101
|
-
const
|
|
163
|
+
const splitSel = (s) => s.split(/,\s*(?![^()]*\))/); // a comma inside :is(…) or :not(…) does not split
|
|
164
|
+
const scopeList = (sels, sys) => [...new Set(splitSel(splitSel(sels).map((x) => scopeSel(x, sys)).join(', ')))].join(', ');
|
|
165
|
+
|
|
166
|
+
const FONTS = [
|
|
167
|
+
"@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
|
|
168
|
+
"@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
|
|
169
|
+
];
|
|
170
|
+
// the workspace's own glue for pm/komorebi.js (the UI parts' behaviour): the tooltip is placed through two custom properties, never an
|
|
171
|
+
// inline style, and a legend swatch takes its colour from its role class
|
|
172
|
+
const UI_GLUE = [
|
|
173
|
+
`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`,
|
|
174
|
+
...['blue', 'leaf', 'muted', 'alert'].map((r) => `${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`),
|
|
175
|
+
`${SCOPE} .pm-chart-head:empty{display:none}`,
|
|
176
|
+
];
|
|
102
177
|
|
|
103
|
-
/** PURE.
|
|
104
|
-
function sheetOf(tokens, bundle) {
|
|
178
|
+
/** PURE. One system's workspace sheet from its tokens.css and components/bundle.css. */
|
|
179
|
+
function sheetOf(name, tokens, bundle) {
|
|
180
|
+
const sys = SYSTEMS[name];
|
|
105
181
|
const L = [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
' * nothing until a page puts class
|
|
109
|
-
"@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
|
|
110
|
-
"@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
|
|
182
|
+
`/* ${sys.sheet}: ${sys.title}, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/${name}/ by`,
|
|
183
|
+
` * lib/design-system.js: do not edit; change the system's files and run \`node lib/design-system.js --write\`. Every rule is scoped to ${sys.scope},`,
|
|
184
|
+
' * so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system\'s own sheet. */',
|
|
111
185
|
];
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
186
|
+
if (name === 'brand') L.push(...FONTS);
|
|
187
|
+
// brand and charts sit inside another system's page: their own page-level rules (body, the preview root) are that system's job
|
|
188
|
+
const shared = sys.scope === FAMILY;
|
|
189
|
+
const pageLevel = (x) => { const t = x.trim(); return t === 'body' || t === ':root' || t === '*' || (sys.roots || []).some((r) => t === r || t === r + ' *'); };
|
|
190
|
+
const emit = (list, indent, bundled) => {
|
|
191
|
+
for (const p0 of list) {
|
|
192
|
+
let p = p0;
|
|
193
|
+
if (shared && bundled && p.sel && !/^@/.test(p.sel)) {
|
|
194
|
+
const keep = splitSel(p.sel).filter((x) => !pageLevel(x));
|
|
195
|
+
if (!keep.length) continue;
|
|
196
|
+
p = { sel: keep.join(','), body: p.body };
|
|
197
|
+
}
|
|
198
|
+
if (p.raw) continue; // @import (the network fonts): brand.css's @font-face lines stand in for it
|
|
199
|
+
if (/^@page/.test(p.sel)) continue; // print pages belong to a printed document, not to a workspace page
|
|
200
|
+
if (/^@media|^@supports/.test(p.sel)) { L.push(`${indent}${p.sel} {`); emit(pieces(p.body), indent + ' ', bundled); L.push(`${indent}}`); continue; }
|
|
116
201
|
if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
|
|
117
|
-
//
|
|
118
|
-
if (
|
|
119
|
-
L.push(`${indent}${scopeList(p.sel)}{${p.body}}`);
|
|
202
|
+
// a preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
|
|
203
|
+
if ((sys.roots || []).includes(p.sel) && /padding/.test(p.body)) continue;
|
|
204
|
+
L.push(`${indent}${scopeList(p.sel, sys)}{${p.body}}`);
|
|
120
205
|
}
|
|
121
206
|
};
|
|
122
|
-
emit(pieces(tokens), '');
|
|
123
|
-
emit(pieces(bundle), '');
|
|
124
|
-
|
|
125
|
-
// inline style, and a legend swatch takes its colour from its role class
|
|
126
|
-
L.push(`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`);
|
|
127
|
-
for (const r of ['blue', 'leaf', 'muted', 'alert']) L.push(`${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`);
|
|
128
|
-
L.push(`${SCOPE} .pm-chart-head:empty{display:none}`);
|
|
207
|
+
emit(pieces(dropImports(tokens)), '', false);
|
|
208
|
+
emit(pieces(dropImports(bundle)), '', true);
|
|
209
|
+
if (name === 'ui') L.push(...UI_GLUE);
|
|
129
210
|
return L.join('\n') + '\n';
|
|
130
211
|
}
|
|
131
212
|
|
|
132
|
-
|
|
133
|
-
|
|
213
|
+
/** Every file the family generates: <sys>/tokens.css in the folder, and (for PMOS's own folder) the public/pm sheets. → { abs path: text } */
|
|
214
|
+
function generated(dir = OWN, pub = PUBLIC) {
|
|
215
|
+
const out = {};
|
|
216
|
+
for (const name of ORDER) {
|
|
217
|
+
const d = path.join(dir, name);
|
|
218
|
+
const json = readJson(path.join(d, 'tokens.json'));
|
|
219
|
+
if (!json) continue;
|
|
220
|
+
const tokens = tokensCss(json, name);
|
|
221
|
+
out[path.join(d, 'tokens.css')] = tokens;
|
|
222
|
+
if (pub) out[path.join(pub, SYSTEMS[name].sheet)] = sheetOf(name, tokens, read(path.join(d, 'components', 'bundle.css')));
|
|
223
|
+
}
|
|
224
|
+
return out;
|
|
225
|
+
}
|
|
226
|
+
/** The workspace's UI sheet (public/pm/komorebi.css), as the files make it. */
|
|
227
|
+
const sheetFromDir = (dir = OWN) => generated(dir)[SHEET];
|
|
228
|
+
|
|
229
|
+
/* ── picking the system ── */
|
|
230
|
+
|
|
231
|
+
/** One ## section of a markdown file, without its heading. */
|
|
232
|
+
function sectionOf(md, heading) {
|
|
233
|
+
const lines = String(md || '').split('\n');
|
|
234
|
+
const at = lines.findIndex((l) => l.trim() === '## ' + heading);
|
|
235
|
+
if (at < 0) return '';
|
|
236
|
+
const end = lines.findIndex((l, i) => i > at && /^#{1,2} /.test(l));
|
|
237
|
+
return lines.slice(at + 1, end < 0 ? lines.length : end).join('\n').trim();
|
|
238
|
+
}
|
|
239
|
+
const bodyOf = (md) => String(md || '').replace(/^---\n[\s\S]*?\n---\n/, '').trim();
|
|
240
|
+
|
|
241
|
+
/** The rules a maker follows for one system: the content rules of its README, after how to use its classes. */
|
|
242
|
+
function rulesOf(name, dir) {
|
|
243
|
+
if (name === 'ui') return RULES;
|
|
244
|
+
if (name === 'messages') return `Follow the PMOS Messages rules (PMOS Documents):\n${bodyOf(read(path.join(dir, 'documents', 'messages.md'))).replace(/^# .*\n+/, '')}`;
|
|
245
|
+
const sys = SYSTEMS[name];
|
|
246
|
+
const rules = sectionOf(read(path.join(dir, name, 'README.md')), 'Content rules');
|
|
247
|
+
return [`Follow ${sys.title} (the stylesheet below is its tokens and parts):`, `- ${sys.use}`, rules].filter(Boolean).join('\n');
|
|
134
248
|
}
|
|
135
249
|
|
|
250
|
+
/** The sheet a maker pastes: brand, charts, then the system's own tokens and parts, comments and the font @import removed. */
|
|
251
|
+
function cssOf(dirs, systems) {
|
|
252
|
+
return stripComments(dropImports(systems.map((s) => read(path.join(dirs[s], s, 'tokens.css')) + '\n' + read(path.join(dirs[s], s, 'components', 'bundle.css'))).join('\n')));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** The family for one kind of output. roots: folders to look in, the product's first. A product's brand/ wins; every other system comes
|
|
256
|
+
* from the LAST root that has it (PMOS's own copy, when the caller passes it), so a product overrides brand only.
|
|
257
|
+
* opts.fallback (default true): PMOS's own folder is the last root. → { kind, systems, css, rules, from, ds } (empty css and rules when
|
|
258
|
+
* nothing has the family). */
|
|
259
|
+
function designSystemFor(kind, roots, { fallback = true } = {}) {
|
|
260
|
+
const want = KINDS[kind];
|
|
261
|
+
if (!want) throw new Error(`designSystemFor: unknown kind "${kind}" (one of ${Object.keys(KINDS).join(', ')})`);
|
|
262
|
+
const found = dirsOf(roots);
|
|
263
|
+
if (fallback && fs.existsSync(path.join(OWN, 'brand', 'tokens.json')) && !found.includes(OWN)) found.push(OWN);
|
|
264
|
+
const empty = { kind, systems: [], css: '', rules: '', from: [] };
|
|
265
|
+
if (!found.length) return empty;
|
|
266
|
+
const msg = want[0] === 'messages';
|
|
267
|
+
const systems = msg ? ['documents'] : ['brand', 'charts', ...want.filter((s) => s !== 'charts')];
|
|
268
|
+
const dirs = {};
|
|
269
|
+
for (const s of systems) dirs[s] = s === 'brand' ? found.find((d) => has(d, s)) : [...found].reverse().find((d) => has(d, s));
|
|
270
|
+
if (systems.some((s) => !dirs[s])) return empty;
|
|
271
|
+
const main = msg ? 'messages' : want[0];
|
|
272
|
+
const rules = [rulesOf(main, dirs[msg ? 'documents' : main]), ...(!msg && main !== 'charts' ? [rulesOf('charts', dirs.charts).replace(/^Follow PMOS Charts \(the stylesheet below is its tokens and parts\):/, 'Charts and diagrams follow PMOS Charts:')] : [])].join('\n');
|
|
273
|
+
if (msg) return { kind, systems: ['documents'], css: '', rules, from: [path.join(dirs.documents, 'documents', 'messages.md')], ds: dirs.documents };
|
|
274
|
+
const from = systems.flatMap((s) => [path.join(dirs[s], s, 'tokens.css'), ...(s === 'brand' ? [] : [path.join(dirs[s], s, 'components', 'bundle.css')])]);
|
|
275
|
+
return { kind, systems, css: cssOf(dirs, systems), rules, from, ds: dirs[main] };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** The content rules alone (the system's README section), for a maker that writes markdown and so needs no sheet: a core document. */
|
|
279
|
+
function writingRulesFor(kind, roots) {
|
|
280
|
+
const want = KINDS[kind];
|
|
281
|
+
if (!want) throw new Error(`writingRulesFor: unknown kind "${kind}"`);
|
|
282
|
+
const main = want[0] === 'messages' ? 'documents' : want[0];
|
|
283
|
+
const dir = [...dirsOf(roots), OWN].find((d) => has(d, main));
|
|
284
|
+
if (!dir) return '';
|
|
285
|
+
if (want[0] === 'messages') return rulesOf('messages', dir);
|
|
286
|
+
const rules = sectionOf(read(path.join(dir, main, 'README.md')), 'Content rules');
|
|
287
|
+
return rules ? `Follow the content rules of ${SYSTEMS[main].title}:\n${rules}` : '';
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** The scaffold a prototype run gets from roots only (no fallback): { css, rules, from, ds }, empty when no root has the family. */
|
|
291
|
+
const scaffoldOf = (roots) => designSystemFor('prototype', roots, { fallback: false });
|
|
292
|
+
|
|
136
293
|
if (require.main === module) {
|
|
137
|
-
const want =
|
|
138
|
-
if (process.argv.includes('--write')) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
294
|
+
const want = generated();
|
|
295
|
+
if (process.argv.includes('--write')) {
|
|
296
|
+
for (const [f, t] of Object.entries(want)) { fs.writeFileSync(f, t); console.log('✓ wrote ' + path.relative(process.cwd(), f)); }
|
|
297
|
+
} else if (process.argv.includes('--check')) {
|
|
298
|
+
const stale = Object.entries(want).filter(([f, t]) => read(f) !== t).map(([f]) => path.relative(process.cwd(), f));
|
|
299
|
+
if (stale.length) { console.error(`✗ not what workspace/design-system/ makes: ${stale.join(', ')}. Run: node lib/design-system.js --write`); process.exit(1); }
|
|
300
|
+
console.log(`✓ ${Object.keys(want).length} generated files match workspace/design-system/`);
|
|
142
301
|
} else { console.log('usage: node lib/design-system.js --write | --check'); process.exit(2); }
|
|
143
302
|
}
|
|
144
303
|
|
|
145
|
-
module.exports = { OWN, SHEET, SCOPE, PLACES, RULES, dirOf,
|
|
304
|
+
module.exports = { OWN, PUBLIC, SHEET, SCOPE, FAMILY, PLACES, SYSTEMS, ORDER, KINDS, RULES, dirOf, tokensOf, tokensCss, pieces, sheetOf, generated, sheetFromDir, sectionOf, rulesOf, designSystemFor, writingRulesFor, scaffoldOf };
|