@amsterdam/design-system-assets 0.2.1 → 0.3.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/CHANGELOG.md CHANGED
@@ -3,8 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.2.1](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.2.0...design-system-assets-v0.2.1) (2024-06-05)
6
+ ## [0.3.0](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.2.2...design-system-assets-v0.3.0) (2025-01-10)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * Delete Radio icon from assets ([#1696](https://github.com/Amsterdam/design-system/issues/1696))
11
+
12
+ ### Features
13
+
14
+ * Make border of Radio thicker when hovering ([#1696](https://github.com/Amsterdam/design-system/issues/1696)) ([8839012](https://github.com/Amsterdam/design-system/commit/88390124aa5197f6c784dae4fc2a7c3e18d75ca6))
15
+ * Change SVGO config ([#1671](https://github.com/Amsterdam/design-system/issues/1671)) ([7b79ade](https://github.com/Amsterdam/design-system/commit/7b79adef8b2ff7977e5af7cc6f329191f1dfff3f))
7
16
 
17
+ ## [0.2.2](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.2.1...design-system-assets-v0.2.2) (2024-10-25)
18
+
19
+ ### Features
20
+
21
+ * Use inline SVG icon for Radio button ([#1460](https://github.com/Amsterdam/design-system/issues/1460)) ([c19055b](https://github.com/Amsterdam/design-system/commit/c19055bd6453ce40ca43b31d599f14ec65d6037a))
22
+
23
+ ## [0.2.1](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.2.0...design-system-assets-v0.2.1) (2024-06-05)
8
24
 
9
25
  ### Features
10
26
 
@@ -12,7 +28,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
12
28
 
13
29
  ## [0.2.0](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.1.8...design-system-assets-v0.2.0) (2024-03-12)
14
30
 
15
-
16
31
  ### ⚠ BREAKING CHANGES
17
32
 
18
33
  * Shorten namespaces in theme and tokens ([#1125](https://github.com/Amsterdam/design-system/issues/1125))
@@ -23,7 +38,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
23
38
 
24
39
  ## [0.1.8](https://github.com/Amsterdam/design-system/compare/design-system-assets-v0.1.7...design-system-assets-v0.1.8) (2024-03-08)
25
40
 
26
-
27
41
  ### Features
28
42
 
29
43
  * Logo Museum Weesp ([#1088](https://github.com/Amsterdam/design-system/issues/1088)) ([da1b780](https://github.com/Amsterdam/design-system/commit/da1b7808b5bcf17acb93fe46531a9722814e9256))
@@ -0,0 +1,18 @@
1
+ <!-- @license CC0-1.0 -->
2
+
3
+ # Contributing Guidelines
4
+
5
+ ## Importing icons from Figma
6
+
7
+ We create and update icons in Figma, then import them into this package for distribution.
8
+
9
+ **Important**: Only export icons from Figma for use in this package. Do not use these icons directly in an application.
10
+
11
+ To export all icons from [the Figma file](https://www.figma.com/design/9IGm6IdPUYizBNGsUnueBd/Amsterdam-Design-System?node-id=6852-5124), use Figma's built-in SVG export feature.
12
+ Select the frame containing all the icon shapes, press `Enter` to select direct children and then press `Enter` again to select all icon components.
13
+ In the right-hand sidebar, click the plus sign next to Export. Choose SVG and export.
14
+ Copy these files over to the `icons` folder and run the following command to optimize them:
15
+
16
+ ```sh
17
+ npm run optimize-icons
18
+ ```
package/README.md CHANGED
@@ -1,9 +1,63 @@
1
1
  <!-- @license CC0-1.0 -->
2
2
 
3
- # Assets
3
+ # Amsterdam Design System: Assets
4
4
 
5
- Assets for the City of Amsterdam
5
+ This package provides all assets from the [Amsterdam Design System](https://designsystem.amsterdam).
6
+ Use it to include the correct fonts, icons or logos in your website or application.
6
7
 
7
- ## Web app manifest, app icons and favicon
8
+ ## Installation
8
9
 
9
- See the Design System documentation for an [overview and examples of the manifest and these icons](https://amsterdam.github.io/design-system/?path=/docs/docs-assets-favicon-app-icons--docs).
10
+ Install this package by itself if you want or need to reference assets directly in your project.
11
+
12
+ Note that our [React components](https://www.npmjs.com/package/@amsterdam/design-system-react) provide more functionality for some of the assets and use them automatically.
13
+ You should use that package if your application uses React.
14
+
15
+ ```sh
16
+ npm install @amsterdam/design-system-assets
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ### Application icons
22
+
23
+ The Design System handbook helps using [a favicon](https://designsystem.amsterdam/?path=/docs/brand-assets-favicon--docs) or [a web manifest and application icons](https://designsystem.amsterdam/?path=/docs/docs-developer-guide-web-app--docs) for home screens of devices in your website or application.
24
+
25
+ ### Font files
26
+
27
+ The package contains our Amsterdam Sans font in OpenType format (.otf) and Web Open Format Font (.woff).
28
+ Import our stylesheet to make all of them available to your project.
29
+
30
+ <!-- prettier-ignore -->
31
+ ```ts
32
+ import "@amsterdam/design-system-assets/font/index.css"
33
+ ```
34
+
35
+ The Design System Handbook offers [more guidance in using the font](https://designsystem.amsterdam/?path=/docs/brand-assets-font--docs).
36
+
37
+ Note that the font is proprietary. Using it requires [a license](https://designsystem.amsterdam/?path=/docs/docs-terms-of-use-copyright--docs).
38
+
39
+ ### Icons
40
+
41
+ The Design System Handbook offers an [overview of our icon library](https://designsystem.amsterdam/?path=/docs/brand-assets-icons--docs).
42
+
43
+ You can import the SVG files to use icons in your website or application.
44
+
45
+ In a React project, use the [Icon component](https://designsystem.amsterdam/?path=/docs/components-media-icon--docs) instead.
46
+ It offers a convenient API for using the icons and streamlines alignment with text.
47
+
48
+ ### Logos
49
+
50
+ The logo of the City of Amsterdam is available as an SVG image, as well as logos for various departments and services.
51
+
52
+ In a React project, use the [Logo component](https://designsystem.amsterdam/?path=/docs/components-media-logo--docs) instead.
53
+
54
+ ## Updating
55
+
56
+ We follow semantic versioning and publish a [change log](https://github.com/Amsterdam/design-system/blob/main/proprietary/assets/CHANGELOG.md) to guide you through updates.
57
+ The assets are a public API of the design system.
58
+ Note that detecting changed or deleted assets is still a manual process.
59
+
60
+ ## Support
61
+
62
+ Contact us if you have a question, find an issue, or want to contribute.
63
+ Find ways to reach us on [designsystem.amsterdam](https://designsystem.amsterdam/?path=/docs/docs-introduction--docs#send-a-message).
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
- "version": "0.2.1",
3
- "author": "Community for NL Design System",
4
- "description": "Assets for the City of Amsterdam",
2
+ "version": "0.3.0",
3
+ "author": "Design System Team, City of Amsterdam <designsystem@amsterdam.nl>",
4
+ "description": "All assets from the Amsterdam Design System. Use it to include the correct fonts, icons or logos in your website or application.",
5
+ "homepage": "https://designsystem.amsterdam/",
5
6
  "license": "SEE LICENSE IN LICENSE.md",
6
7
  "name": "@amsterdam/design-system-assets",
7
8
  "keywords": [
9
+ "amsterdam",
10
+ "amsterdam-design-system",
11
+ "assets",
12
+ "design-system",
8
13
  "nl-design-system"
9
14
  ],
10
15
  "private": false,
package/svgo.config.js ADDED
@@ -0,0 +1,13 @@
1
+ /* eslint-disable no-undef */
2
+ module.exports = {
3
+ plugins: [
4
+ 'removeDimensions',
5
+ 'removeUselessStrokeAndFill',
6
+ {
7
+ name: 'removeAttrs',
8
+ params: {
9
+ attrs: '(fill|stroke)',
10
+ },
11
+ },
12
+ ],
13
+ }