rizzo-css 0.0.41 → 0.0.42

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 (54) hide show
  1. package/README.md +3 -3
  2. package/bin/rizzo-css.js +55 -15
  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 +6 -3
  14. package/package.json +1 -1
  15. package/scaffold/astro/FontSwitcher.astro +221 -0
  16. package/scaffold/astro/Modal.astro +14 -8
  17. package/scaffold/astro/Settings.astro +12 -49
  18. package/scaffold/astro/SoundEffects.astro +49 -0
  19. package/scaffold/astro-core/README-RIZZO.md +1 -1
  20. package/scaffold/astro-core/src/layouts/Layout.astro +1 -1
  21. package/scaffold/config/fonts.ts +12 -4
  22. package/scaffold/svelte/DocsSidebar.svelte +47 -0
  23. package/scaffold/svelte/FontSwitcher.svelte +180 -0
  24. package/scaffold/svelte/Modal.svelte +2 -0
  25. package/scaffold/svelte/Settings.svelte +18 -0
  26. package/scaffold/svelte/SoundEffects.svelte +43 -0
  27. package/scaffold/svelte-core/README-RIZZO.md +1 -1
  28. package/scaffold/vanilla/README-RIZZO.md +1 -1
  29. package/scaffold/vanilla/components/accordion.html +34 -0
  30. package/scaffold/vanilla/components/alert.html +34 -0
  31. package/scaffold/vanilla/components/avatar.html +34 -0
  32. package/scaffold/vanilla/components/badge.html +34 -0
  33. package/scaffold/vanilla/components/breadcrumb.html +34 -0
  34. package/scaffold/vanilla/components/button.html +34 -0
  35. package/scaffold/vanilla/components/cards.html +34 -0
  36. package/scaffold/vanilla/components/copy-to-clipboard.html +34 -0
  37. package/scaffold/vanilla/components/divider.html +34 -0
  38. package/scaffold/vanilla/components/dropdown.html +34 -0
  39. package/scaffold/vanilla/components/forms.html +34 -0
  40. package/scaffold/vanilla/components/icons.html +34 -0
  41. package/scaffold/vanilla/components/index.html +34 -0
  42. package/scaffold/vanilla/components/modal.html +34 -0
  43. package/scaffold/vanilla/components/navbar.html +34 -0
  44. package/scaffold/vanilla/components/pagination.html +34 -0
  45. package/scaffold/vanilla/components/progress-bar.html +34 -0
  46. package/scaffold/vanilla/components/search.html +34 -0
  47. package/scaffold/vanilla/components/settings.html +34 -0
  48. package/scaffold/vanilla/components/spinner.html +34 -0
  49. package/scaffold/vanilla/components/table.html +34 -0
  50. package/scaffold/vanilla/components/tabs.html +34 -0
  51. package/scaffold/vanilla/components/theme-switcher.html +34 -0
  52. package/scaffold/vanilla/components/toast.html +34 -0
  53. package/scaffold/vanilla/components/tooltip.html +34 -0
  54. package/scaffold/vanilla/index.html +34 -0
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.42 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
@@ -96,14 +96,14 @@ const SVELTE_COMPONENTS = [
96
96
  'Button', 'Badge', 'Card', 'Divider', '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
103
  'Button', 'Badge', 'Card', 'Divider', '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
 
@@ -112,7 +112,7 @@ const RECOMMENDED_COMPONENTS = [
112
112
  'Button', 'Badge', 'Card', 'Divider', '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) {
@@ -465,6 +465,27 @@ async function confirmRunInstall(pm) {
465
465
  return answer === '' || /^y(es)?$/i.test(answer);
466
466
  }
467
467
 
468
+ /** Prompt yes/no; default yes. Returns true to initialize git repo, false to skip. */
469
+ async function confirmGitInit() {
470
+ const answer = await question('\nInitialize a git repository? (Y/n) ');
471
+ return answer === '' || /^y(es)?$/i.test(answer);
472
+ }
473
+
474
+ /** Run git init in projectDir if .git does not already exist. Returns true if init ran (or already a repo), false on failure. */
475
+ function runGitInit(projectDir) {
476
+ const gitDir = join(projectDir, '.git');
477
+ if (existsSync(gitDir)) {
478
+ return true;
479
+ }
480
+ const code = runInDir(projectDir, 'git init');
481
+ if (code === 0) {
482
+ console.log(' ✓ Git repository initialized.');
483
+ return true;
484
+ }
485
+ console.error(' ✗ git init failed (exit ' + code + '). You can run "git init" manually in the project directory.');
486
+ return false;
487
+ }
488
+
468
489
  /** Ask user to copy js/main.js for vanilla interactive components. */
469
490
  async function confirmCopyVanillaJs() {
470
491
  const answer = await question('\nCopy js/main.js for modal, dropdown, tabs, toast, search, navbar, copy-to-clipboard, theme switcher? (Y/n) ');
@@ -778,7 +799,7 @@ rizzo-css CLI — Add Rizzo CSS to your project (Vanilla, Astro, Svelte)
778
799
  Available commands: init, add, theme, doctor, help
779
800
 
780
801
  Flags summary:
781
- init --yes --path <dir> --framework <fw> --template <t> --package-manager <pm> --install --no-install
802
+ init --yes --path <dir> --framework <fw> --template <t> --package-manager <pm> --install --no-install --no-git
782
803
  add --path <dir> --framework <fw> ... --no-snippet --readme --force --vanilla-js
783
804
  theme (no flags)
784
805
  doctor Check config, CSS file, and optional layout link
@@ -804,7 +825,8 @@ Options (init):
804
825
  --package-manager <pm> npm | pnpm | yarn | bun (with --yes, or skip PM prompt when interactive)
805
826
  --install After scaffolding, run package manager install in project directory (no prompt)
806
827
  --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.)
828
+ --no-git With --yes, skip initializing a git repository (default with --yes is to run git init)
829
+ (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
830
 
809
831
  Options (add):
810
832
  --path <dir> Target directory for rizzo.min.css (overrides config and framework default)
@@ -878,7 +900,7 @@ Available to pick (Astro & Svelte; same list):
878
900
 
879
901
  Dependencies (when you pick the component on the left, the right is added automatically):
880
902
  Navbar → Search, Settings (navbar includes search bar; Settings so gear button works)
881
- Settings → ThemeSwitcher (and themes.ts)
903
+ Settings → ThemeSwitcher, FontSwitcher, SoundEffects (and themes.ts)
882
904
  Toast → Alert
883
905
 
884
906
  ThemeSwitcher and ThemeIcon: when selected, themes.ts (and Svelte theme.ts) is copied so they work.
@@ -890,7 +912,7 @@ Where components are copied:
890
912
  Vanilla → components/ (HTML) (for interactivity add js/main.js; use --vanilla-js on add)
891
913
 
892
914
  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.
915
+ Manual = you pick; the picker shows e.g. "Settings (adds ThemeSwitcher, FontSwitcher, SoundEffects)". Required deps are added when you confirm.
894
916
 
895
917
  To see this again: npx rizzo-css help components
896
918
  `);
@@ -1508,7 +1530,11 @@ async function runAddToExisting(frameworkOverride, options) {
1508
1530
  : resolvePackageManager(cwd);
1509
1531
  const cliExample = pm.dlx('rizzo-css theme');
1510
1532
  const configTargetDir = framework === 'astro' ? 'public/css' : framework === 'svelte' ? 'static/css' : targetDirRaw;
1511
- writeRizzoConfig(cwd, { targetDir: configTargetDir, framework, packageManager: pm.agent, theme });
1533
+ const configPath = join(cwd, RIZZO_CONFIG_FILE);
1534
+ const hadConfig = existsSync(configPath);
1535
+ if (!hadConfig) {
1536
+ writeRizzoConfig(cwd, { targetDir: configTargetDir, framework, packageManager: pm.agent, theme });
1537
+ }
1512
1538
  const writeSnippet = options.writeSnippet !== false;
1513
1539
  if (writeSnippet) {
1514
1540
  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 +1556,7 @@ async function runAddToExisting(frameworkOverride, options) {
1530
1556
  }
1531
1557
  console.log('\n✓ Rizzo CSS added to your existing project');
1532
1558
  console.log(' - ' + cssTarget);
1533
- console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1559
+ if (!hadConfig) console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1534
1560
  if (writeSnippet) console.log(' - Wrote ' + RIZZO_SNIPPET_FILE + ' (copy-paste link + theme)');
1535
1561
  if (options.writeReadme) console.log(' - Wrote ' + SCAFFOLD_README_FILENAME);
1536
1562
  console.log('\nYou must add the stylesheet link yourself — it is not added automatically.');
@@ -1894,11 +1920,25 @@ async function cmdInit(argv) {
1894
1920
  const runPrefix = projectDir !== cwd ? 'cd ' + pathRelative(cwd, projectDir) + ' && ' : '';
1895
1921
  const hasPackageJson = useHandpickAstro || useHandpickSvelte || useAstroBase || useSvelteBase;
1896
1922
 
1897
- // Always write rizzo-css.json for new projects (targetDir, framework, packageManager).
1923
+ // Write rizzo-css.json only when one doesn't exist (don't overwrite existing config).
1898
1924
  const pathsForConfig = getFrameworkCssPaths(framework);
1899
- writeRizzoConfig(projectDir, { targetDir: pathsForConfig.targetDir, framework, packageManager: selectedPm, theme });
1900
- console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1925
+ const initConfigPath = join(projectDir, RIZZO_CONFIG_FILE);
1926
+ if (!existsSync(initConfigPath)) {
1927
+ writeRizzoConfig(projectDir, { targetDir: pathsForConfig.targetDir, framework, packageManager: selectedPm, theme });
1928
+ console.log(' - Wrote ' + RIZZO_CONFIG_FILE);
1929
+ }
1930
+
1931
+ // Git init: in every scenario — prompt when interactive, run when --yes (unless --no-git)
1932
+ if (!yes) {
1933
+ const shouldGitInit = await confirmGitInit();
1934
+ if (shouldGitInit) {
1935
+ runGitInit(projectDir);
1936
+ }
1937
+ } else if (!hasFlag(argv, '--no-git')) {
1938
+ runGitInit(projectDir);
1939
+ }
1901
1940
 
1941
+ // Package manager install: only for Astro/Svelte (Vanilla has no package.json)
1902
1942
  if (runInstallAfterScaffold && !noInstall && hasPackageJson) {
1903
1943
  const dirLabel = projectDir !== cwd ? ' in ' + pathRelative(cwd, projectDir) : ' (current directory)';
1904
1944
  console.log('\nRunning install' + dirLabel + ': ' + pm.install);
@@ -1910,7 +1950,7 @@ async function cmdInit(argv) {
1910
1950
  const shouldRun = await confirmRunInstall(pm);
1911
1951
  if (shouldRun) {
1912
1952
  const dirLabel = projectDir !== cwd ? ' in ' + pathRelative(cwd, projectDir) : ' here';
1913
- console.log('\nChanging to project directory and running install' + dirLabel + ': ' + pm.install);
1953
+ console.log('\nRunning install' + dirLabel + ': ' + pm.install);
1914
1954
  const code = runInDir(projectDir, pm.install);
1915
1955
  if (code !== 0) {
1916
1956
  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.