Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

chore: add support for exporting our colors as Swift files

Gabe Kangas4d4b1063ad08
diff --git a/.gitignore b/.gitignore
index 75b920ea09..79a08ecd81 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,6 +42,7 @@ test/automated/browser/screenshots
lefthook.yml
test/automated/browser/cypress/screenshots
test/automated/browser/cypress/videos
+web/style-definitions/build/
web/public/sw.js
web/public/workbox-*.js
diff --git a/web/style-definitions/config.js b/web/style-definitions/config.js
index 15930ae061..7ab0ddf202 100644
--- a/web/style-definitions/config.js
+++ b/web/style-definitions/config.js
@@ -54,5 +54,29 @@ module.exports = {
},
],
},
+ 'ios-swift': {
+ transforms: [
+ 'attribute/cti',
+ 'name/ti/camel',
+ 'color/ColorSwiftUI',
+ 'content/swift/literal',
+ 'asset/swift/literal',
+ 'size/swift/remToCGFloat',
+ 'font/swift/literal',
+ ],
+ buildPath: 'build/',
+ files: [
+ {
+ format: 'ios-swift/class.swift',
+ className: 'PlatformColor',
+ destination: 'Colors.swift',
+ filter: {
+ attributes: {
+ category: 'color',
+ },
+ },
+ },
+ ],
+ },
},
};