11.3.0 • Published 9 months ago

@o3r/design v11.3.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
9 months ago

This package is an Otter Framework Module.

Description

Stable Version Bundle Size

Set of tools to generate CSS themes and Metadata based on the Design Token Specifications.

How to install

ng add @o3r/design

Generators

Otter Design module provides a set of code generators based on angular schematics.

SchematicsDescriptionHow to use
addInclude Otter design module in a library / application.ng add @o3r/design
generate-cssGenerate CSS Theme based on Design Token Filesng g generate-css

Builders

Otter Design module provides a set of builders based on angular builders.

generate-css

The generate-css builder can generate CSS and CMS Metadata based on given Design Token Json files. The following configurations are available:

OptionsDefault ValueDescription
designTokenFilePatterns[] RequirePath patterns to the Design Token JSON files. Files in dependencies are supported and resolved with Node Resolver.
variableType'css'Type of the variables to generate for a Design Token.
outputnullOutput file where the CSS will be generated. The path specified in o3rTargetFile will be ignore if this option is specified
defaultStyleFilesrc/theme.scssFile path to generate the variable if not determined by the specifications
metadataOutputnullPath to generate the metadata for the CMS. The metadata will be generated only if the file path is specified.
metadataIgnorePrivatefalseIgnore the private variable in the metadata generation.
rootPathnullRoot path of files where the CSS will be generated.
failOnDuplicatefalseDetermine if the process should stop in case of Token duplication.
templateFilenullPath to a template file to apply as default configuration to a Design Token extension.
prefixnullPrefix to append to generated variables.
prefixPrivatenullPrefix to append to generated private variables.
watchfalseEnable Watch mode.

generate-jsonschema

The generate-jsonschema builder can generate a JSON Schema validating and providing auto-completion to a third party Design Token file implementing a theme for the current Design system. The following configurations are available:

OptionsDefault ValueDescription
designTokenFilePatterns[] RequirePath patterns to the Design Token JSON files. Files in dependencies are supported and resolved with Node Resolver.
outputnullOutput file where the CSS will be generated. The path specified in o3rTargetFile will be ignored if this option is specified
failOnDuplicatefalseDetermine if the process should stop in case of Token duplication.
schemaIdnullID used in the generated JSON Schema.
schemaDescriptionnullDescription of the generated JSON Schema.
watchfalseEnable Watch mode.

Command Line Interfaces

o3r-build-design-token

The purpose of this CLI is to concatenate different Design Token files and check the potential duplication. Can be run with the following command:

npx -p @o3r/design o3r-build-design-token <...design-tokens> -o ./my-new-token-file.json

It comes with the following options:

OptionsAliasDescription
--output-oPath to the file where the resulting Design Token will be generated
--template-tTemplate file to apply to the Design Token files
--level-lNumber of key to join together when generating the Design Token nodes

Technical documentation

Documentation providing explanations on the use and customization of the Design Token parser and renderers is available in the technical documentation.

11.4.0-rc.3

9 months ago

11.4.0-rc.2

9 months ago

11.4.0-rc.1

9 months ago

11.4.0-rc.0

9 months ago

11.3.0

9 months ago

10.2.20

9 months ago

11.0.9

9 months ago

11.2.5

9 months ago

11.2.6

9 months ago

11.3.0-rc.8

9 months ago

11.1.6

9 months ago

10.4.12

9 months ago

9.6.25

9 months ago

11.2.4

9 months ago

11.0.7

10 months ago

10.2.18

10 months ago

10.2.19

9 months ago

11.0.8

9 months ago

11.2.2

9 months ago

11.2.0

10 months ago

11.1.4

10 months ago

11.4.0-prerelease.1

10 months ago

11.4.0-prerelease.2

10 months ago

11.4.0-prerelease.3

10 months ago

11.4.0-prerelease.4

10 months ago

11.4.0-prerelease.0

10 months ago

11.4.0-prerelease.9

10 months ago

11.4.0-prerelease.5

10 months ago

11.4.0-prerelease.6

10 months ago

11.4.0-prerelease.7

10 months ago

11.4.0-prerelease.8

10 months ago

10.3.13

9 months ago

11.3.0-rc.3

9 months ago

11.3.0-rc.4

9 months ago

11.3.0-rc.5

9 months ago

11.3.0-rc.6

9 months ago

11.3.0-rc.0

10 months ago

11.3.0-rc.1

10 months ago

11.3.0-rc.2

10 months ago

11.3.0-rc.7

9 months ago

9.6.24

9 months ago

10.4.11

9 months ago

10.4.10

10 months ago

11.1.3

10 months ago

11.2.0-rc.4

10 months ago

11.3.0-prerelease.8

10 months ago

11.3.0-prerelease.9

10 months ago

11.3.0-prerelease.7

10 months ago

11.1.2

10 months ago

11.3.0-prerelease.6

10 months ago

11.3.0-prerelease.4

11 months ago

11.3.0-prerelease.5

10 months ago

11.2.0-rc.3

10 months ago

11.2.0-rc.2

11 months ago

11.3.0-prerelease.3

11 months ago

11.1.1

11 months ago

11.2.0-rc.1

11 months ago

11.3.0-prerelease.2

11 months ago

11.2.0-rc.0

11 months ago

11.3.0-prerelease.0

11 months ago

11.3.0-prerelease.1

11 months ago

11.0.6

11 months ago

10.4.9

11 months ago

11.1.0

11 months ago

11.1.0-rc.8

11 months ago

10.2.14

1 year ago

10.2.15

1 year ago

10.2.12

1 year ago

10.2.13

1 year ago

10.2.10

1 year ago

10.2.11

1 year ago

11.0.4

11 months ago

10.2.16

1 year ago

10.2.17

1 year ago

11.0.2

11 months ago

11.0.0

12 months ago

11.0.1

12 months ago

10.4.1

1 year ago

10.4.2

1 year ago

10.4.3

1 year ago

10.4.4

1 year ago

10.4.5

1 year ago

10.4.7

1 year ago

10.4.8

12 months ago

11.2.0-prerelease.2

12 months ago

11.2.0-prerelease.1

12 months ago

11.2.0-prerelease.0

12 months ago

11.2.0-prerelease.9

11 months ago

11.2.0-prerelease.8

11 months ago

11.2.0-prerelease.7

11 months ago

11.2.0-prerelease.5

11 months ago

11.2.0-prerelease.4

11 months ago

11.2.0-prerelease.3

11 months ago

11.0.0-rc.10

12 months ago

10.3.3

1 year ago

10.3.6

1 year ago

10.3.7

1 year ago

11.0.0-rc.11

12 months ago

10.3.8

1 year ago

10.3.0

1 year ago

10.3.0-rc.7

1 year ago

10.3.0-rc.6

1 year ago

11.1.0-rc.3

11 months ago

11.1.0-rc.4

11 months ago

11.1.0-rc.1

12 months ago

11.1.0-rc.2

11 months ago

11.1.0-rc.0

12 months ago

11.1.0-rc.7

11 months ago

11.1.0-rc.5

11 months ago

11.1.0-rc.6

11 months ago

11.0.0-rc.0

1 year ago

11.0.0-rc.2

1 year ago

10.3.10

1 year ago

10.3.11

12 months ago

10.4.0-rc.7

1 year ago

10.4.0-rc.8

1 year ago

10.4.0-rc.9

1 year ago

10.4.0-rc.3

1 year ago

10.4.0-rc.4

1 year ago

10.4.0-rc.5

1 year ago

10.4.0-rc.6

1 year ago

10.4.0-rc.0

1 year ago

10.4.0-rc.1

1 year ago

9.6.18

1 year ago

10.4.0-rc.2

1 year ago

9.6.19

1 year ago

11.0.0-rc.4

1 year ago

11.0.0-rc.5

1 year ago

11.0.0-rc.6

1 year ago

11.0.0-rc.7

1 year ago

11.0.0-rc.8

1 year ago

11.0.0-rc.9

1 year ago

9.6.20

1 year ago

9.6.23

1 year ago

9.6.21

1 year ago

9.6.22

1 year ago

10.2.8

1 year ago

10.2.9

1 year ago

10.3.0-rc.5

1 year ago

10.3.0-rc.4

1 year ago

11.0.0-next.2

1 year ago

10.3.0-rc.3

1 year ago

10.3.0-rc.2

1 year ago

10.3.0-rc.1

1 year ago

11.0.0-next.1

1 year ago

10.2.4

1 year ago

10.3.0-rc.0

1 year ago

9.6.16

1 year ago

9.6.17

1 year ago

10.1.11

1 year ago

10.1.10

1 year ago

10.2.3

1 year ago

10.2.0

1 year ago

10.2.1

1 year ago

10.2.2

1 year ago

10.2.0-rc.5

1 year ago

9.6.14

1 year ago

9.6.15

1 year ago

10.2.0-rc.4

1 year ago

10.1.8

1 year ago

10.1.6

1 year ago

10.1.4

1 year ago

10.1.5

1 year ago

10.2.0-rc.3

1 year ago

10.2.0-rc.2

1 year ago

10.1.2

1 year ago

10.1.3

1 year ago

10.2.0-rc.1

1 year ago

10.2.0-rc.0

1 year ago

10.1.1

1 year ago

10.1.0

1 year ago

10.1.0-rc.10

1 year ago

10.1.0-rc.11

1 year ago

10.0.15

1 year ago

10.0.14

1 year ago

10.1.0-rc.8

1 year ago

10.1.0-rc.9

1 year ago

9.6.13

1 year ago

10.1.0-rc.7

1 year ago

10.0.13

1 year ago

10.0.11

1 year ago

10.1.0-rc.4

1 year ago

10.1.0-rc.5

1 year ago

10.1.0-rc.6

1 year ago

9.6.12

1 year ago

10.1.0-rc.3

1 year ago

10.0.10

1 year ago

10.1.0-rc.2

1 year ago

10.0.8

1 year ago

10.1.0-rc.0

1 year ago

10.1.0-rc.1

1 year ago

10.0.6

1 year ago

10.0.7

1 year ago

10.0.5

1 year ago

10.0.3

1 year ago

10.0.4

1 year ago

10.0.0

1 year ago

10.0.1

1 year ago

10.0.0-rc.13

1 year ago

10.0.0-rc.9

1 year ago

10.0.0-rc.12

1 year ago

10.0.0-rc.11

1 year ago

10.0.0-rc.10

1 year ago

10.0.0-rc.4

1 year ago

10.0.0-rc.6

1 year ago

10.0.0-rc.5

1 year ago

10.0.0-rc.8

1 year ago

10.0.0-rc.7

1 year ago

9.6.10

1 year ago

9.6.11

1 year ago

9.6.9

1 year ago

10.0.0-rc.3

1 year ago

10.0.0-rc.0

1 year ago

10.0.0-rc.2

1 year ago

10.0.0-rc.1

1 year ago

9.6.8

1 year ago

9.6.7

1 year ago

9.6.6

1 year ago

9.6.5

1 year ago

9.6.4

1 year ago

9.6.3

1 year ago

9.6.2

1 year ago

9.6.1

1 year ago

9.6.0

1 year ago

9.6.0-rc.6

1 year ago

9.6.0-rc.7

1 year ago

9.6.0-rc.5

1 year ago

9.6.0-rc.4

1 year ago

10.0.0-alpha.6

2 years ago

10.0.0-alpha.4

2 years ago

10.0.0-alpha.3

2 years ago

11.0.0-next.0

2 years ago

10.0.0-alpha.2

2 years ago

10.0.0-alpha.1

2 years ago