Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 38b6d93

Browse files
committed
#brands - Added support for brands, new readme
1 parent f977b99 commit 38b6d93

File tree

8 files changed

+45
-32
lines changed

8 files changed

+45
-32
lines changed

README.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<img src="./readme-icon.png" alt="Supernova Logo" style="max-width:100%;">
22

3-
4-
[Supernova](https://supernova.io) is a design system platform that allows you to seamlessly translate your design system data to production-ready code. Supernova works with any platform or tech stack, is used by many developers and organizations around the world, and can help you save time by replacing manual and repetitive tasks that all developers hate. To learn everything Supernova, please check out our [developer documentation](https://developers.supernova.io/).
3+
[Supernova](https://supernova.io) is a design system platform that manages your assets, tokens, components and allows you to write spectacular documentations for your entire teams. And because you found your way here, you are probably interested in its most advanced functionality - automatic hand-off of design and development assets, tokens and data in general. To learn everything Supernova, please check out our [developer documentation](https://developers.supernova.io/).
54

65

76
# CSS Exporter
87

9-
108
The CSS allows you to **produce a CSS definitions** in such a way that it can be immediately used in your production codebase to style all your visual elements. Specifically, this exporter is capable of exporting the previews of:
119

1210
- [x] Color definitions
@@ -47,54 +45,62 @@ Because tokens are defined as css variables, you can use them as such, anywhere
4745

4846
In order to make the Supernova CSS exporter available for your organization so you can start generating code from your design system, please follow the installation guide in our [developer documentation](https://developers.supernova.io/using-exporters/installing-exporters).
4947

48+
5049
## Reporting Bugs or Requesting Features
5150

5251
In order to faciliate easy communication and speed up delivery of fixes and features for this exporter, we require everyone to log all issues and feature requests through the issue tracking of this repository.
5352

5453
Please read through the [existing issues](../../issues) before you open a new issue! It might be that we have already discussed it before. If you are sure your request wasn't mentioned just yet, proceed to [open a new issue](../../issues) and fill in the required information. Thank you!
5554

55+
5656
## Contributing
5757

58-
If you have an idea for improving this exporter package or want a specific issue fixed quickly, we would love to see you contribute to its development!
58+
If you have an idea for improving this exporter package or want a specific issue fixed quickly, we would love to see you contribute to its development!
59+
60+
There are multiple ways you can contribute, so we have written a [contribution guide](https://developers.supernova.io/building-exporters/contribution-and-requests) that will walk your through the process. Any pull requests to this repository are very welcome.
61+
62+
Would love to help us build more but maybe need a little bit of support? [Join our community](https://community.supernova.io) and drop us a message, we will support any of your wild ideas!
5963

60-
There are multiple ways you can contribute, so we have written a [contribution guide](https://developers.supernova.io/building-exporters/contribution-and-requests) that will walk your through the process. Any pull requests to this repository are very welcome.
6164

6265
## License
6366

6467
This exporter is distributed under the [MIT license](./LICENSE.md). [We absolutely encourage you](https://developers.supernova.io/building-exporters/cloning-exporters) to clone it and modify it for your purposes, so it fits the requirements of your stack. If you see that you have created something amazing in the process that others would benefit from, we strongly recommend you consider [publishing it back to the community](https://developers.supernova.io/building-exporters/sharing-exporters-with-others) as well.
6568

69+
6670
## Useful Links
6771

6872
- To learn more about Supernova, [go visit our website](https://supernova.io)
6973
- To join our community of fellow developers where we try to push what is possible with design systems and code automation, join our [community discord](https://community.supernova.io)
7074
- To understand everything you can do with Supernova and how much time and resources it can save you, go read our [product documentation](https://learn.supernova.io/)
7175
- Finally, to learn everything about what exporters are and how you can integrate with your codebase, go read our [developer documentation](https://developers.supernova.io/)
7276

73-
## Other Supernova Exporters
77+
78+
## Supernova Maintained Exporters
7479

7580
We are developing and maintaining exporters for many major technologies. Here are all the official exporters maintained by Supernova:
7681

77-
- [iOS Exporter](https://github.com/Supernova-Studio/exporter-ios)
82+
- [iOS Token & Style Exporter](https://github.com/Supernova-Studio/exporter-ios)
7883
- [iOS Localization Exporter](https://github.com/Supernova-Studio/exporter-ios-localization)
79-
- [Android Exporter](https://github.com/Supernova-Studio/exporter-android)
80-
- [React Exporter](https://github.com/Supernova-Studio/exporter-react)
81-
- [Flutter Exporter](https://github.com/Supernova-Studio/exporter-flutter)
82-
- [Angular Exporter](https://github.com/Supernova-Studio/exporter-angular)
83-
- [Typescript Exporter](https://github.com/Supernova-Studio/exporter-typescript)
84-
- [CSS Exporter](https://github.com/Supernova-Studio/exporter-css)
85-
- [LESS Exporter](https://github.com/Supernova-Studio/exporter-less)
86-
- [SCSS Exporter](https://github.com/Supernova-Studio/exporter-scss)
87-
88-
89-
Additionally, we are also developing and maintaining exporters for specific use cases:
90-
84+
- [Android Token & Style Exporter](https://github.com/Supernova-Studio/exporter-android)
85+
- [React Token & Style Exporter](https://github.com/Supernova-Studio/exporter-react)
86+
- [Flutter Token & Style Exporter](https://github.com/Supernova-Studio/exporter-flutter)
87+
- [Angular Token & Style Exporter](https://github.com/Supernova-Studio/exporter-angular)
88+
- [Typescript Token & Style Exporter](https://github.com/Supernova-Studio/exporter-typescript)
89+
- [CSS Token & Style Exporter](https://github.com/Supernova-Studio/exporter-css)
90+
- [LESS Token & Style Exporter](https://github.com/Supernova-Studio/exporter-less)
91+
- [SCSS Token & Style Exporter](https://github.com/Supernova-Studio/exporter-scss)
9192
- [Style Dictionary Exporter](https://github.com/Supernova-Studio/exporter-style-dictionary)
92-
- [HTML Preview Exporter](https://github.com/Supernova-Studio/exporter-html-preview)
93-
94-
To browse all exporters created by our amazing community, please visit the [Supernova](https://supernova.io) Exporter Store.
95-
96-
9793

94+
Additionally, you can also use asset exporters for all major targets, enjoy!:
9895

96+
- [SVG Asset Exporter](https://github.com/Supernova-Studio/exporter-svg-assets)
97+
- [PDF Asset Exporter](https://github.com/Supernova-Studio/exporter-pdf-assets)
98+
- [PNG Asset Exporter](https://github.com/Supernova-Studio/exporter-png-assets)
99+
- [iOS Asset Catalogue Exporter](https://github.com/Supernova-Studio/exporter-ios-asset-catalogue)
100+
- [React Native Asset Exporter](https://github.com/Supernova-Studio/exporter-react-native-assets)
101+
- [Android Asset Exporter](https://github.com/Supernova-Studio/exporter-android-assets)
102+
- [Flutter PNG Asset Exporter](https://github.com/Supernova-Studio/exporter-flutter-png-assets)
103+
- [Flutter SVG Asset Exporter](https://github.com/Supernova-Studio/exporter-flutter-svg-assets)
99104

105+
To browse all exporters created by our amazing community, please visit the [Supernova](https://supernova.io) Exporter Store.
100106

exporter.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"organization": "Supernova",
77
"homepage": "https://supernova.io",
88
"source_dir": "src",
9-
"version": "1.1",
9+
"version": "1.2",
10+
"usesBrands": true,
1011
"config": {
1112
"sources": "sources.json",
1213
"output": "output.json",
@@ -21,4 +22,4 @@
2122
"Tokens",
2223
"Styles"
2324
]
24-
}
25+
}

src/borders.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and their value rendered using `rendered-border` blueprint
66

77
*}
88
:root {
9-
{[ for token in ds.tokensByType("Border") ]}
9+
{[ let brand = ds.currentBrand() /]}
10+
{[ for token in ds.tokensByType("Border", brand.id) ]}
1011
{[ inject "rendered-token-var" context token /]}
1112

1213

src/colors.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and their value rendered using `rendered-color` blueprint
66

77
*}
88
:root {
9-
{[ for token in ds.tokensByType("Color") ]}
9+
{[ let brand = ds.currentBrand() /]}
10+
{[ for token in ds.tokensByType("Color", brand.id) ]}
1011
{[ inject "rendered-token-var" context token /]}
1112

1213

src/gradients.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and their value rendered using `gradient-color` blueprint
66

77
*}
88
:root {
9-
{[ for token in ds.tokensByType("Gradient") ]}
9+
{[ let brand = ds.currentBrand() /]}
10+
{[ for token in ds.tokensByType("Gradient", brand.id) ]}
1011
{[ inject "rendered-token-var" context token /]}
1112

1213

src/measures.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and their value rendered using `rendered-measure` blueprint
66

77
*}
88
:root {
9-
{[ for token in ds.tokensByType("Measure") ]}
9+
{[ let brand = ds.currentBrand() /]}
10+
{[ for token in ds.tokensByType("Measure", brand.id) ]}
1011
{[ inject "rendered-token-var" context token /]}
1112

1213

src/shadows.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and their value rendered using `shadow-color` blueprint
66

77
*}
88
:root {
9-
{[ for token in ds.tokensByType("Shadow") ]}
9+
{[ let brand = ds.currentBrand() /]}
10+
{[ for token in ds.tokensByType("Shadow", brand.id) ]}
1011
{[ inject "rendered-token-var" context token /]}
1112

1213

src/typography.pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Tokens are named by their group path and then name,
55
and their value rendered using `rendered-color` blueprint
66

77
*}
8-
{[ const allTokens = ds.tokensByType("Typography") /]}
8+
{[ let brand = ds.currentBrand() /]}
9+
{[ const allTokens = ds.tokensByType("Typography", brand.id) /]}
910
{[ for token in allTokens ]}
1011
{[ if !token.referencedToken ]}
1112
{[ inject "rendered-token-class" context { "token": token, "allTokens": allTokens } /]}

0 commit comments

Comments
 (0)