@db-ui/foundations
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,8 +10,2 @@ { | ||
}, | ||
"screens": { | ||
"sm": "40rem", | ||
"md": "48rem", | ||
"lg": "64rem", | ||
"xl": "80rem" | ||
}, | ||
"fontSize": { | ||
@@ -43,3 +37,10 @@ "2xl": "var(--db-type-body-font-size-2xl)", | ||
"siz-lg": "var(---db-sizing-lg)" | ||
}, | ||
"screens": { | ||
"xs": "360px", | ||
"s": "768px", | ||
"m": "1024px", | ||
"l": "1440px", | ||
"xl": "1920px" | ||
} | ||
} |
{ | ||
"name": "@db-ui/foundations", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Provides basic tokens and assets based on the DB Design System.", | ||
"license": "Apache-2.0", | ||
"main": "build.js", | ||
"files": [ | ||
"assets", | ||
"build" | ||
], | ||
"scripts": { | ||
"copy:scss": "cpr scss build/scss -o", | ||
"copy-build:web": "cpr build ../../build-outputs/foundations/build -o -f \"(compose|ios-swift)\"", | ||
"build": "npm-run-all build:*", | ||
"build:01_style-dictionary": "node style-dictionary.js && npm run copy:scss", | ||
"build:02_css": "sass --no-source-map --load-path=node_modules/ --load-path=../../node_modules/ build/scss/:build/css/", | ||
"build:03_tailwind": "node scripts/tailwind-config-generator.mjs false true && cpr scripts/tailwind-config-generator.mjs build/tailwind/tailwind-config-generator.mjs -o", | ||
"clean": "rm -rf build", | ||
"copy-build": "npm-run-all copy-build:*", | ||
"copy-build:assets": "cpr assets ../../build-outputs/foundations/assets -o", | ||
"copy-build:package.json": "cpr package.json ../../build-outputs/foundations/package.json -o", | ||
"copy-build:readme": "cpr README.md ../../build-outputs/foundations/README.md -o", | ||
"copy-build": "npm-run-all copy-build:*", | ||
"build:style-dictionary": "node style-dictionary.js && npm run copy:scss", | ||
"build:tailwind": "node scripts/tailwind-config-generator.mjs false true && cpr scripts/tailwind-config-generator.mjs build/tailwind/tailwind-config-generator.mjs -o", | ||
"build:css": "sass --no-source-map --load-path=node_modules/ --load-path=../../node_modules/ build/scss/:build/css/", | ||
"build": "npm-run-all build:*", | ||
"clean": "rm -rf build", | ||
"start": "nodemon --watch tokens/ --watch scss --watch scripts -e json,scss,js -x \"npm run build:style-dictionary\"", | ||
"copy-build:web": "cpr build ../../build-outputs/foundations/build -o -f \"(compose|ios-swift)\"", | ||
"copy:scss": "cpr scss build/scss -o", | ||
"start": "nodemon --watch tokens/ --watch scss --watch scripts -e json,scss,js -x \"npm run build:01_style-dictionary\"", | ||
"zeplin:tokens": "node scripts/zeplin-styleguide.js" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
@@ -26,13 +30,9 @@ "@csstools/normalize.css": "^12.0.0" | ||
"devDependencies": { | ||
"@zeplin/sdk": "^1.14.0", | ||
"@zeplin/sdk": "^1.17.0", | ||
"cpr": "3.0.1", | ||
"dotenv": "^16.0.3", | ||
"nodemon": "2.0.20", | ||
"sass": "^1.57.1", | ||
"sass": "^1.58.1", | ||
"style-dictionary": "3.7.2" | ||
}, | ||
"files": [ | ||
"build", | ||
"assets" | ||
], | ||
"publishConfig": { | ||
@@ -39,0 +39,0 @@ "registry": "https://registry.npmjs.org/", |
# @db-ui/foundations | ||
A library containing all tokens of [DB UX System](https://github.com/db-ui/mono). | ||
![Apache 2.0 license badge](https://img.shields.io/badge/License-Apache_2.0-blue.svg) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com) | ||
A library containing all tokens of [DB UX Design System (technical components)](https://github.com/db-ui/mono). | ||
We currently support: | ||
@@ -21,5 +26,5 @@ | ||
// main.ts / main.js | ||
import "@db-ui/foundations/build/db-ui-foundations.css"; | ||
import "@db-ui/foundations/build/css/db-ui-foundations.css"; | ||
// optional: to use classes like e.g. db-ui-bg-success | ||
import "@db-ui/foundations/build/color-classes.css"; | ||
import "@db-ui/foundations/build/css/color-classes.css"; | ||
``` | ||
@@ -50,5 +55,5 @@ | ||
@use "@db-ui/foundations/build/scss/icon/icons" as *; | ||
@use "@db-ui/foundations/build/db-ui-foundations" as *; | ||
@use "@db-ui/foundations/build/scss/db-ui-foundations" as *; | ||
// optional: to use db-ui-bg-success | ||
@import "@db-ui/foundations/build/color-classes" as *; | ||
@import "@db-ui/foundations/build/scss/color-classes" as *; | ||
// optional: to use use $db-spacing-fixed-md | ||
@@ -93,1 +98,21 @@ @use "@db-ui/foundations/build/scss/variables.global" as *; | ||
``` | ||
## Deutsche Bahn brand | ||
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license. | ||
Please have a look at our brand portal at <https://marketingportal.extranet.deutschebahn.com/> for any further questions and whom to contact on any brand issues. | ||
You must remove or replace any Deutsche Bahn brand and design assets as well as protected characteristics and trademarks. We're even also planning to provide a neutral theme that would make it much easier for you to use our product without the trademarks by Deutsche Bahn. | ||
## Contributions | ||
Contributions are very welcome, please refer to the [contribution guide](https://github.com/db-ui/mono/blob/main/CONTRIBUTING.md). | ||
## Code of conduct | ||
We as members, contributors, and leaders pledge to make participation in our | ||
community a harassment-free experience for everyone – have a look at our [Contributor Covenant Code of Conduct](https://github.com/db-ui/mono/blob/main/CODE-OF-CONDUCT.md). | ||
## License | ||
This project is licensed under [Apache-2.0](LICENSE). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3957939
1350
8999
116