rizzo-css 0.0.41 → 0.0.43

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.
Files changed (64) hide show
  1. package/README.md +3 -3
  2. package/bin/rizzo-css.js +66 -25
  3. package/dist/fonts/DMMono/DMMono-Italic.ttf +0 -0
  4. package/dist/fonts/DMMono/DMMono-Regular.ttf +0 -0
  5. package/dist/fonts/DMMono/OFL.txt +93 -0
  6. package/dist/fonts/DMSans/DMSans-Italic-VariableFont_opsz,wght.ttf +0 -0
  7. package/dist/fonts/DMSans/DMSans-VariableFont_opsz,wght.ttf +0 -0
  8. package/dist/fonts/DMSans/OFL.txt +93 -0
  9. package/dist/fonts/DMSans/README.txt +136 -0
  10. package/dist/fonts/Outfit/OFL.txt +93 -0
  11. package/dist/fonts/Outfit/Outfit-VariableFont_wght.ttf +0 -0
  12. package/dist/fonts/Outfit/README.txt +71 -0
  13. package/dist/rizzo.min.css +10 -6
  14. package/package.json +1 -1
  15. package/scaffold/astro/FontSwitcher.astro +221 -0
  16. package/scaffold/astro/Footer.astro +56 -0
  17. package/scaffold/astro/Modal.astro +14 -8
  18. package/scaffold/astro/Settings.astro +12 -49
  19. package/scaffold/astro/SoundEffects.astro +49 -0
  20. package/scaffold/astro/ThemeIcon.astro +2 -1
  21. package/scaffold/astro-core/README-RIZZO.md +1 -1
  22. package/scaffold/astro-core/src/layouts/Layout.astro +1 -1
  23. package/scaffold/astro-core/src/pages/index.astro +42 -1
  24. package/scaffold/config/fonts.ts +12 -4
  25. package/scaffold/svelte/DocsSidebar.svelte +49 -0
  26. package/scaffold/svelte/FontSwitcher.svelte +180 -0
  27. package/scaffold/svelte/Footer.svelte +49 -0
  28. package/scaffold/svelte/Modal.svelte +2 -0
  29. package/scaffold/svelte/Settings.svelte +18 -0
  30. package/scaffold/svelte/SoundEffects.svelte +43 -0
  31. package/scaffold/svelte/index.ts +2 -0
  32. package/scaffold/svelte-core/README-RIZZO.md +1 -1
  33. package/scaffold/svelte-core/src/routes/+page.svelte +42 -1
  34. package/scaffold/vanilla/README-RIZZO.md +1 -1
  35. package/scaffold/vanilla/components/accordion.html +42 -0
  36. package/scaffold/vanilla/components/alert.html +42 -0
  37. package/scaffold/vanilla/components/avatar.html +42 -0
  38. package/scaffold/vanilla/components/badge.html +42 -0
  39. package/scaffold/vanilla/components/breadcrumb.html +42 -0
  40. package/scaffold/vanilla/components/button.html +42 -0
  41. package/scaffold/vanilla/components/cards.html +42 -0
  42. package/scaffold/vanilla/components/copy-to-clipboard.html +42 -0
  43. package/scaffold/vanilla/components/divider.html +42 -0
  44. package/scaffold/vanilla/components/docs-sidebar.html +528 -0
  45. package/scaffold/vanilla/components/dropdown.html +42 -0
  46. package/scaffold/vanilla/components/font-switcher.html +528 -0
  47. package/scaffold/vanilla/components/footer.html +528 -0
  48. package/scaffold/vanilla/components/forms.html +42 -0
  49. package/scaffold/vanilla/components/icons.html +42 -0
  50. package/scaffold/vanilla/components/index.html +62 -16
  51. package/scaffold/vanilla/components/modal.html +42 -0
  52. package/scaffold/vanilla/components/navbar.html +42 -0
  53. package/scaffold/vanilla/components/pagination.html +42 -0
  54. package/scaffold/vanilla/components/progress-bar.html +42 -0
  55. package/scaffold/vanilla/components/search.html +42 -0
  56. package/scaffold/vanilla/components/settings.html +42 -0
  57. package/scaffold/vanilla/components/sound-effects.html +528 -0
  58. package/scaffold/vanilla/components/spinner.html +42 -0
  59. package/scaffold/vanilla/components/table.html +42 -0
  60. package/scaffold/vanilla/components/tabs.html +42 -0
  61. package/scaffold/vanilla/components/theme-switcher.html +42 -0
  62. package/scaffold/vanilla/components/toast.html +42 -0
  63. package/scaffold/vanilla/components/tooltip.html +42 -0
  64. package/scaffold/vanilla/index.html +83 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@ pnpm add rizzo-css
12
12
  yarn add rizzo-css
13
13
  ```
14
14
 
15
- **Quick start (no install):** `npx rizzo-css init` — choose **framework** (Vanilla, Astro, or Svelte), then **add to existing** or **create new**. **Existing** (or `npx rizzo-css add`) → drop in CSS + hand-pick components; you must add the `<link>` yourself (CLI prints the exact tag). **New** → choose **Core** (all 29 components) or **Manual** (pick which to include; all pre-selected), then package manager. Core includes all 29 components and required dependencies so every component works. Run `npx rizzo-css help components` for the dependency list. Non-interactive: `npx rizzo-css init --yes --framework vanilla|astro|svelte`. Optional **rizzo-css.json** and `add --install-package`. All get the **same CSS and component styles**. To use the **official Svelte or Astro create command** plus Rizzo, create the app first, then run `npx rizzo-css add`:
15
+ **Quick start (no install):** `npx rizzo-css init` — choose **framework** (Vanilla, Astro, or Svelte), then **add to existing** or **create new**. **Existing** (or `npx rizzo-css add`) → drop in CSS + hand-pick components; you must add the `<link>` yourself (CLI prints the exact tag). **New** → choose **Core** (all 31 components) or **Manual** (pick which to include; all pre-selected), then package manager. Core includes all 31 components and required dependencies so every component works. Run `npx rizzo-css help components` for the dependency list. Non-interactive: `npx rizzo-css init --yes --framework vanilla|astro|svelte`. Optional **rizzo-css.json** and `add --install-package`. All get the **same CSS and component styles**. To use the **official Svelte or Astro create command** plus Rizzo, create the app first, then run `npx rizzo-css add`:
16
16
 
17
17
  ```bash
18
18
  npm create svelte@latest my-app && cd my-app && npx rizzo-css add
@@ -48,7 +48,7 @@ You install **the same package** for every framework: `npm install rizzo-css`. N
48
48
 
49
49
  With `npx rizzo-css add --path <dir>`, the CLI still suggests the correct href for your framework (e.g. Astro/Svelte get a leading `/` path).
50
50
 
51
- Scaffolds in the package: `scaffold/vanilla/` (Core or Manual), `scaffold/astro-core/`, `scaffold/svelte-core/`, plus `scaffold/astro/` and `scaffold/svelte/` (component templates for hand-pick), and `scaffold/config/` (font pairs for the Settings component). When you add **Settings** via the CLI (Astro or Svelte), the CLI also copies `scaffold/config/fonts.ts` into your project so the font-pair dropdown works (Astro: `src/components/config/fonts.ts`; Svelte: `src/lib/config/fonts.ts`). Use `npx rizzo-css init` and choose **Create new project**; **Core** includes all 29 components, **Manual** lets you pick (all interactive pre-selected). The stylesheet link is in the layout. **Add to existing** (or `add` command) drops in CSS + hand-pick components; **you must add the stylesheet `<link>` yourself** — the CLI prints the exact tag. Every scaffold includes LICENSE-RIZZO, README-RIZZO.md, and .gitignore (does not overwrite your project files); Astro/Svelte include package.json and .env.example.
51
+ Scaffolds in the package: `scaffold/vanilla/` (Core or Manual), `scaffold/astro-core/`, `scaffold/svelte-core/`, plus `scaffold/astro/` and `scaffold/svelte/` (component templates for hand-pick), and `scaffold/config/` (font pairs for the Settings component). When you add **Settings** via the CLI (Astro or Svelte), the CLI also copies `scaffold/config/fonts.ts` into your project so the font-pair dropdown works (Astro: `src/components/config/fonts.ts`; Svelte: `src/lib/config/fonts.ts`). Use `npx rizzo-css init` and choose **Create new project**; **Core** includes all 31 components, **Manual** lets you pick (all interactive pre-selected). The stylesheet link is in the layout. **Add to existing** (or `add` command) drops in CSS + hand-pick components; **you must add the stylesheet `<link>` yourself** — the CLI prints the exact tag. Every scaffold includes LICENSE-RIZZO, README-RIZZO.md, and .gitignore (does not overwrite your project files); Astro/Svelte include package.json and .env.example.
52
52
 
53
53
  ## Use
54
54
 
@@ -63,7 +63,7 @@ import 'rizzo-css';
63
63
  **Without a bundler (plain HTML):** Use a CDN. Both unpkg and jsDelivr resolve the package root to the built CSS (via the `unpkg` / `jsdelivr` fields in this package). For reliability or to pin a version, use the explicit path:
64
64
 
65
65
  ```html
66
- <!-- unpkg (pin version: replace @latest with @0.0.39 or any version) -->
66
+ <!-- unpkg (pin version: replace @latest with @0.0.43 or any version) -->
67
67
  <link rel="stylesheet" href="https://unpkg.com/rizzo-css@latest/dist/rizzo.min.css" />
68
68
 
69
69
  <!-- or jsDelivr -->
package/bin/rizzo-css.js CHANGED
@@ -93,26 +93,26 @@ const LIGHT_THEMES = [
93
93
  const THEMES = [...DARK_THEMES, ...LIGHT_THEMES];
94
94
  // Components available for scaffold (must match scaffold/svelte and scaffold/astro)
95
95
  const SVELTE_COMPONENTS = [
96
- 'Button', 'Badge', 'Card', 'Divider', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
96
+ 'Button', 'Badge', 'Card', 'Divider', 'Footer', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
97
97
  'Breadcrumb', 'FormGroup', 'Input', 'Checkbox', 'Textarea', 'Select', 'Radio',
98
98
  'CopyToClipboard', 'Tooltip', 'Pagination', 'Tabs', 'Accordion', 'Dropdown',
99
- 'Modal', 'Toast', 'Table', 'ThemeSwitcher',
99
+ 'Modal', 'Toast', 'Table', 'ThemeSwitcher', 'FontSwitcher', 'SoundEffects',
100
100
  'Navbar', 'Settings', 'Search', 'Icons',
101
101
  ];
102
102
  const ASTRO_COMPONENTS = [
103
- 'Button', 'Badge', 'Card', 'Divider', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
103
+ 'Button', 'Badge', 'Card', 'Divider', 'Footer', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
104
104
  'Breadcrumb', 'FormGroup', 'Input', 'Checkbox', 'Textarea', 'Select', 'Radio',
105
105
  'CopyToClipboard', 'Tooltip', 'Pagination', 'Tabs', 'Accordion', 'Dropdown',
106
- 'Modal', 'Toast', 'Table', 'ThemeSwitcher',
106
+ 'Modal', 'Toast', 'Table', 'ThemeSwitcher', 'FontSwitcher', 'SoundEffects',
107
107
  'Navbar', 'Settings', 'Search', 'Icons',
108
108
  ];
109
109
 
110
110
  // Base set for Manual: all interactive components we ship (so manual has a full working set). Full includes everything (same list).
111
111
  const RECOMMENDED_COMPONENTS = [
112
- 'Button', 'Badge', 'Card', 'Divider', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
112
+ 'Button', 'Badge', 'Card', 'Divider', 'Footer', 'Spinner', 'ProgressBar', 'Avatar', 'Alert',
113
113
  'Breadcrumb', 'FormGroup', 'Input', 'Checkbox', 'Textarea', 'Select', 'Radio',
114
114
  'CopyToClipboard', 'Tooltip', 'Pagination', 'Tabs', 'Accordion', 'Dropdown',
115
- 'Modal', 'Toast', 'Table', 'ThemeSwitcher',
115
+ 'Modal', 'Toast', 'Table', 'ThemeSwitcher', 'FontSwitcher', 'SoundEffects',
116
116
  'Navbar', 'Search', 'Settings', 'Icons',
117
117
  ];
118
118
 
@@ -122,8 +122,8 @@ const VANILLA_JS_COMPONENTS = ['Modal', 'Dropdown', 'Tabs', 'Toast', 'ThemeSwitc
122
122
  // Component dependencies per framework: when user selects a component, these are copied automatically so it works.
123
123
  // Manual users can run: npx rizzo-css help components
124
124
  const COMPONENT_DEPS = {
125
- astro: { Settings: ['ThemeSwitcher'], Toast: ['Alert'], Navbar: ['Search', 'Settings'] },
126
- svelte: { Settings: ['ThemeSwitcher'], Toast: ['Alert'], Navbar: ['Search', 'Settings'] },
125
+ astro: { Settings: ['ThemeSwitcher', 'FontSwitcher', 'SoundEffects'], Toast: ['Alert'], Navbar: ['Search', 'Settings'] },
126
+ svelte: { Settings: ['ThemeSwitcher', 'FontSwitcher', 'SoundEffects'], Toast: ['Alert'], Navbar: ['Search', 'Settings'] },
127
127
  };
128
128
 
129
129
  function getComponentDeps(framework, componentName) {
@@ -174,14 +174,15 @@ function logAddedDeps(selected, expanded, framework) {
174
174
  if (byRequirement.length) console.log('\n Also adding: ' + byRequirement.join('; '));
175
175
  }
176
176
 
177
- // Vanilla scaffold: component name (same as ASTRO_COMPONENTS) -> components/*.html slug. Navbar, Settings, Search, Icons are vanilla-only.
177
+ // Vanilla scaffold: component name (same as ASTRO_COMPONENTS) -> components/*.html slug.
178
178
  const VANILLA_COMPONENT_SLUGS = {
179
- Button: 'button', Badge: 'badge', Card: 'cards', Divider: 'divider', Spinner: 'spinner', ProgressBar: 'progress-bar',
180
- Avatar: 'avatar', Alert: 'alert', Breadcrumb: 'breadcrumb', FormGroup: 'forms', Input: 'forms', Checkbox: 'forms',
181
- Textarea: 'forms', Select: 'forms', Radio: 'forms', CopyToClipboard: 'copy-to-clipboard', Tooltip: 'tooltip',
182
- Pagination: 'pagination', Tabs: 'tabs', Accordion: 'accordion', Dropdown: 'dropdown', Modal: 'modal',
183
- Toast: 'toast', Table: 'table', ThemeSwitcher: 'theme-switcher',
184
- Navbar: 'navbar', Settings: 'settings', Search: 'search', Icons: 'icons',
179
+ Accordion: 'accordion', Alert: 'alert', Avatar: 'avatar', Badge: 'badge', Breadcrumb: 'breadcrumb', Button: 'button',
180
+ Card: 'cards', Checkbox: 'forms', CopyToClipboard: 'copy-to-clipboard', Divider: 'divider', Dropdown: 'dropdown',
181
+ Footer: 'footer', FormGroup: 'forms', Input: 'forms', Modal: 'modal', Pagination: 'pagination', ProgressBar: 'progress-bar',
182
+ Radio: 'forms', Search: 'search', Select: 'forms', Settings: 'settings', Spinner: 'spinner', Table: 'table',
183
+ Tabs: 'tabs', Textarea: 'forms', ThemeSwitcher: 'theme-switcher', Toast: 'toast', Tooltip: 'tooltip',
184
+ FontSwitcher: 'font-switcher', SoundEffects: 'sound-effects',
185
+ Navbar: 'navbar', Icons: 'icons',
185
186
  };
186
187
 
187
188
  // ANSI colors for CLI (framework logo colors)
@@ -465,6 +466,27 @@ async function confirmRunInstall(pm) {
465
466
  return answer === '' || /^y(es)?$/i.test(answer);
466
467
  }
467
468
 
469
+ /** Prompt yes/no; default yes. Returns true to initialize git repo, false to skip. */
470
+ async function confirmGitInit() {
471
+ const answer = await question('\nInitialize a git repository? (Y/n) ');
472
+ return answer === '' || /^y(es)?$/i.test(answer);
473
+ }
474
+
475
+ /** Run git init in projectDir if .git does not already exist. Returns true if init ran (or already a repo), false on failure. */
476
+ function runGitInit(projectDir) {
477
+ const gitDir = join(projectDir, '.git');
478
+ if (existsSync(gitDir)) {
479
+ return true;
480
+ }
481
+ const code = runInDir(projectDir, 'git init');
482
+ if (code === 0) {
483
+ console.log(' ✓ Git repository initialized.');
484
+ return true;
485
+ }
486
+ console.error(' ✗ git init failed (exit ' + code + '). You can run "git init" manually in the project directory.');
487
+ return false;
488
+ }
489
+
468
490
  /** Ask user to copy js/main.js for vanilla interactive components. */
469
491
  async function confirmCopyVanillaJs() {
470
492
  const answer = await question('\nCopy js/main.js for modal, dropdown, tabs, toast, search, navbar, copy-to-clipboard, theme switcher? (Y/n) ');
@@ -778,7 +800,7 @@ rizzo-css CLI — Add Rizzo CSS to your project (Vanilla, Astro, Svelte)
778
800
  Available commands: init, add, theme, doctor, help
779
801
 
780
802
  Flags summary:
781
- init --yes --path <dir> --framework <fw> --template <t> --package-manager <pm> --install --no-install
803
+ init --yes --path <dir> --framework <fw> --template <t> --package-manager <pm> --install --no-install --no-git
782
804
  add --path <dir> --framework <fw> ... --no-snippet --readme --force --vanilla-js
783
805
  theme (no flags)
784
806
  doctor Check config, CSS file, and optional layout link
@@ -804,7 +826,8 @@ Options (init):
804
826
  --package-manager <pm> npm | pnpm | yarn | bun (with --yes, or skip PM prompt when interactive)
805
827
  --install After scaffolding, run package manager install in project directory (no prompt)
806
828
  --no-install Do not run install and do not prompt
807
- (Install always runs in the project directory. rizzo-css.json is written for new and existing projects; interactive run prompts "Run install now? (Y/n)" for Astro/Svelte.)
829
+ --no-git With --yes, skip initializing a git repository (default with --yes is to run git init)
830
+ (Git: only init offers or runs git init. Interactive init: "Initialize a git repository? (Y/n)" for all frameworks. With --yes, git init runs unless --no-git. Add (CSS + components) does not prompt for git. Astro/Svelte then get "Run install now? (Y/n)"; Vanilla has no package manager. rizzo-css.json is written only when the project does not already have one.)
808
831
 
809
832
  Options (add):
810
833
  --path <dir> Target directory for rizzo.min.css (overrides config and framework default)
@@ -878,7 +901,7 @@ Available to pick (Astro & Svelte; same list):
878
901
 
879
902
  Dependencies (when you pick the component on the left, the right is added automatically):
880
903
  Navbar → Search, Settings (navbar includes search bar; Settings so gear button works)
881
- Settings → ThemeSwitcher (and themes.ts)
904
+ Settings → ThemeSwitcher, FontSwitcher, SoundEffects (and themes.ts)
882
905
  Toast → Alert
883
906
 
884
907
  ThemeSwitcher and ThemeIcon: when selected, themes.ts (and Svelte theme.ts) is copied so they work.
@@ -890,7 +913,7 @@ Where components are copied:
890
913
  Vanilla → components/ (HTML) (for interactivity add js/main.js; use --vanilla-js on add)
891
914
 
892
915
  Core = all components above; dependencies are included so everything works.
893
- Manual = you pick; the picker shows e.g. "Settings (adds ThemeSwitcher)". Required deps are added when you confirm.
916
+ Manual = you pick; the picker shows e.g. "Settings (adds ThemeSwitcher, FontSwitcher, SoundEffects)". Required deps are added when you confirm.
894
917
 
895
918
  To see this again: npx rizzo-css help components
896
919
  `);
@@ -1508,7 +1531,11 @@ async function runAddToExisting(frameworkOverride, options) {
1508
1531
  : resolvePackageManager(cwd);
1509
1532
  const cliExample = pm.dlx('rizzo-css theme');
1510
1533
  const configTargetDir = framework === 'astro' ? 'public/css' : framework === 'svelte' ? 'static/css' : targetDirRaw;
1511
- writeRizzoConfig(cwd, { targetDir: configTargetDir, framework, packageManager: pm.agent, theme });
1534
+ const configPath = join(cwd, RIZZO_CONFIG_FILE);
1535
+ const hadConfig = existsSync(configPath);
1536
+ if (!hadConfig) {
1537
+ writeRizzoConfig(cwd, { targetDir: configTargetDir, framework, packageManager: pm.agent, theme });
1538
+ }
1512
1539
  const writeSnippet = options.writeSnippet !== false;
1513
1540
  if (writeSnippet) {
1514
1541
  const where = framework === 'svelte' ? 'Root layout (e.g. src/app.html)' : framework === 'astro' ? 'Layout (e.g. src/layouts/Layout.astro)' : 'HTML or layout';
@@ -1530,7 +1557,7 @@ async function runAddToExisting(frameworkOverride, options) {
1530
1557
  }
1531
1558
  console.log('\n✓ Rizzo CSS added to your existing project');
1532
1559
  console.log(' - ' + cssTarget);
1533
- console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1560
+ if (!hadConfig) console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1534
1561
  if (writeSnippet) console.log(' - Wrote ' + RIZZO_SNIPPET_FILE + ' (copy-paste link + theme)');
1535
1562
  if (options.writeReadme) console.log(' - Wrote ' + SCAFFOLD_README_FILENAME);
1536
1563
  console.log('\nYou must add the stylesheet link yourself — it is not added automatically.');
@@ -1894,11 +1921,25 @@ async function cmdInit(argv) {
1894
1921
  const runPrefix = projectDir !== cwd ? 'cd ' + pathRelative(cwd, projectDir) + ' && ' : '';
1895
1922
  const hasPackageJson = useHandpickAstro || useHandpickSvelte || useAstroBase || useSvelteBase;
1896
1923
 
1897
- // Always write rizzo-css.json for new projects (targetDir, framework, packageManager).
1924
+ // Write rizzo-css.json only when one doesn't exist (don't overwrite existing config).
1898
1925
  const pathsForConfig = getFrameworkCssPaths(framework);
1899
- writeRizzoConfig(projectDir, { targetDir: pathsForConfig.targetDir, framework, packageManager: selectedPm, theme });
1900
- console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1926
+ const initConfigPath = join(projectDir, RIZZO_CONFIG_FILE);
1927
+ if (!existsSync(initConfigPath)) {
1928
+ writeRizzoConfig(projectDir, { targetDir: pathsForConfig.targetDir, framework, packageManager: selectedPm, theme });
1929
+ console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1930
+ }
1931
+
1932
+ // Git init: in every scenario — prompt when interactive, run when --yes (unless --no-git)
1933
+ if (!yes) {
1934
+ const shouldGitInit = await confirmGitInit();
1935
+ if (shouldGitInit) {
1936
+ runGitInit(projectDir);
1937
+ }
1938
+ } else if (!hasFlag(argv, '--no-git')) {
1939
+ runGitInit(projectDir);
1940
+ }
1901
1941
 
1942
+ // Package manager install: only for Astro/Svelte (Vanilla has no package.json)
1902
1943
  if (runInstallAfterScaffold && !noInstall && hasPackageJson) {
1903
1944
  const dirLabel = projectDir !== cwd ? ' in ' + pathRelative(cwd, projectDir) : ' (current directory)';
1904
1945
  console.log('\nRunning install' + dirLabel + ': ' + pm.install);
@@ -1910,7 +1951,7 @@ async function cmdInit(argv) {
1910
1951
  const shouldRun = await confirmRunInstall(pm);
1911
1952
  if (shouldRun) {
1912
1953
  const dirLabel = projectDir !== cwd ? ' in ' + pathRelative(cwd, projectDir) : ' here';
1913
- console.log('\nChanging to project directory and running install' + dirLabel + ': ' + pm.install);
1954
+ console.log('\nRunning install' + dirLabel + ': ' + pm.install);
1914
1955
  const code = runInDir(projectDir, pm.install);
1915
1956
  if (code !== 0) {
1916
1957
  console.error('\nInstall failed (exit ' + code + '). Run manually: ' + runPrefix + pm.install);
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The DM Mono Project Authors (https://www.github.com/googlefonts/dm-mono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,136 @@
1
+ DM Sans Variable Font
2
+ =====================
3
+
4
+ This download contains DM Sans as both variable fonts and static fonts.
5
+
6
+ DM Sans is a variable font with these axes:
7
+ opsz
8
+ wght
9
+
10
+ This means all the styles are contained in these files:
11
+ DM_Sans/DMSans-VariableFont_opsz,wght.ttf
12
+ DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf
13
+
14
+ If your app fully supports variable fonts, you can now pick intermediate styles
15
+ that aren’t available as static fonts. Not all apps support variable fonts, and
16
+ in those cases you can use the static font files for DM Sans:
17
+ DM_Sans/static/DMSans-Thin.ttf
18
+ DM_Sans/static/DMSans-ExtraLight.ttf
19
+ DM_Sans/static/DMSans-Light.ttf
20
+ DM_Sans/static/DMSans-Regular.ttf
21
+ DM_Sans/static/DMSans-Medium.ttf
22
+ DM_Sans/static/DMSans-SemiBold.ttf
23
+ DM_Sans/static/DMSans-Bold.ttf
24
+ DM_Sans/static/DMSans-ExtraBold.ttf
25
+ DM_Sans/static/DMSans-Black.ttf
26
+ DM_Sans/static/DMSans_18pt-Thin.ttf
27
+ DM_Sans/static/DMSans_18pt-ExtraLight.ttf
28
+ DM_Sans/static/DMSans_18pt-Light.ttf
29
+ DM_Sans/static/DMSans_18pt-Regular.ttf
30
+ DM_Sans/static/DMSans_18pt-Medium.ttf
31
+ DM_Sans/static/DMSans_18pt-SemiBold.ttf
32
+ DM_Sans/static/DMSans_18pt-Bold.ttf
33
+ DM_Sans/static/DMSans_18pt-ExtraBold.ttf
34
+ DM_Sans/static/DMSans_18pt-Black.ttf
35
+ DM_Sans/static/DMSans_24pt-Thin.ttf
36
+ DM_Sans/static/DMSans_24pt-ExtraLight.ttf
37
+ DM_Sans/static/DMSans_24pt-Light.ttf
38
+ DM_Sans/static/DMSans_24pt-Regular.ttf
39
+ DM_Sans/static/DMSans_24pt-Medium.ttf
40
+ DM_Sans/static/DMSans_24pt-SemiBold.ttf
41
+ DM_Sans/static/DMSans_24pt-Bold.ttf
42
+ DM_Sans/static/DMSans_24pt-ExtraBold.ttf
43
+ DM_Sans/static/DMSans_24pt-Black.ttf
44
+ DM_Sans/static/DMSans_36pt-Thin.ttf
45
+ DM_Sans/static/DMSans_36pt-ExtraLight.ttf
46
+ DM_Sans/static/DMSans_36pt-Light.ttf
47
+ DM_Sans/static/DMSans_36pt-Regular.ttf
48
+ DM_Sans/static/DMSans_36pt-Medium.ttf
49
+ DM_Sans/static/DMSans_36pt-SemiBold.ttf
50
+ DM_Sans/static/DMSans_36pt-Bold.ttf
51
+ DM_Sans/static/DMSans_36pt-ExtraBold.ttf
52
+ DM_Sans/static/DMSans_36pt-Black.ttf
53
+ DM_Sans/static/DMSans-ThinItalic.ttf
54
+ DM_Sans/static/DMSans-ExtraLightItalic.ttf
55
+ DM_Sans/static/DMSans-LightItalic.ttf
56
+ DM_Sans/static/DMSans-Italic.ttf
57
+ DM_Sans/static/DMSans-MediumItalic.ttf
58
+ DM_Sans/static/DMSans-SemiBoldItalic.ttf
59
+ DM_Sans/static/DMSans-BoldItalic.ttf
60
+ DM_Sans/static/DMSans-ExtraBoldItalic.ttf
61
+ DM_Sans/static/DMSans-BlackItalic.ttf
62
+ DM_Sans/static/DMSans_18pt-ThinItalic.ttf
63
+ DM_Sans/static/DMSans_18pt-ExtraLightItalic.ttf
64
+ DM_Sans/static/DMSans_18pt-LightItalic.ttf
65
+ DM_Sans/static/DMSans_18pt-Italic.ttf
66
+ DM_Sans/static/DMSans_18pt-MediumItalic.ttf
67
+ DM_Sans/static/DMSans_18pt-SemiBoldItalic.ttf
68
+ DM_Sans/static/DMSans_18pt-BoldItalic.ttf
69
+ DM_Sans/static/DMSans_18pt-ExtraBoldItalic.ttf
70
+ DM_Sans/static/DMSans_18pt-BlackItalic.ttf
71
+ DM_Sans/static/DMSans_24pt-ThinItalic.ttf
72
+ DM_Sans/static/DMSans_24pt-ExtraLightItalic.ttf
73
+ DM_Sans/static/DMSans_24pt-LightItalic.ttf
74
+ DM_Sans/static/DMSans_24pt-Italic.ttf
75
+ DM_Sans/static/DMSans_24pt-MediumItalic.ttf
76
+ DM_Sans/static/DMSans_24pt-SemiBoldItalic.ttf
77
+ DM_Sans/static/DMSans_24pt-BoldItalic.ttf
78
+ DM_Sans/static/DMSans_24pt-ExtraBoldItalic.ttf
79
+ DM_Sans/static/DMSans_24pt-BlackItalic.ttf
80
+ DM_Sans/static/DMSans_36pt-ThinItalic.ttf
81
+ DM_Sans/static/DMSans_36pt-ExtraLightItalic.ttf
82
+ DM_Sans/static/DMSans_36pt-LightItalic.ttf
83
+ DM_Sans/static/DMSans_36pt-Italic.ttf
84
+ DM_Sans/static/DMSans_36pt-MediumItalic.ttf
85
+ DM_Sans/static/DMSans_36pt-SemiBoldItalic.ttf
86
+ DM_Sans/static/DMSans_36pt-BoldItalic.ttf
87
+ DM_Sans/static/DMSans_36pt-ExtraBoldItalic.ttf
88
+ DM_Sans/static/DMSans_36pt-BlackItalic.ttf
89
+
90
+ Get started
91
+ -----------
92
+
93
+ 1. Install the font files you want to use
94
+
95
+ 2. Use your app's font picker to view the font family and all the
96
+ available styles
97
+
98
+ Learn more about variable fonts
99
+ -------------------------------
100
+
101
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
102
+ https://variablefonts.typenetwork.com
103
+ https://medium.com/variable-fonts
104
+
105
+ In desktop apps
106
+
107
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
108
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
109
+
110
+ Online
111
+
112
+ https://developers.google.com/fonts/docs/getting_started
113
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
114
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
115
+
116
+ Installing fonts
117
+
118
+ MacOS: https://support.apple.com/en-us/HT201749
119
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
120
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
121
+
122
+ Android Apps
123
+
124
+ https://developers.google.com/fonts/docs/android
125
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
126
+
127
+ License
128
+ -------
129
+ Please read the full license text (OFL.txt) to understand the permissions,
130
+ restrictions and requirements for usage, redistribution, and modification.
131
+
132
+ You can use them in your products & projects – print or digital,
133
+ commercial or otherwise.
134
+
135
+ This isn't legal advice, please consider consulting a lawyer and see the full
136
+ license for all details.
@@ -0,0 +1,93 @@
1
+ Copyright 2021 The Outfit Project Authors (https://github.com/Outfitio/Outfit-Fonts)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.