Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(plasma-theme-builder, plasma-tokens): Add support multiple color in gradient #626

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

neretin-trike
Copy link
Collaborator

@neretin-trike neretin-trike commented Jul 20, 2023

Добавлена поддержка множественных цветов у одного слоя градиента для веб-сервиса Theme Builder и генераторов для XML и Swift файлов.

Пример поддерживаемого формата:

linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.015) 17.19%, rgba(255, 255, 255, 0.052) 40.24%, rgba(255, 255, 255, 0.06) 51.17%, rgba(255, 255, 255, 0.052) 62.12%, rgba(255, 255, 255, 0.015) 82.81%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.12)

Обновлён шаблон генерации набора токенов цветов для Swift файлов.

🐤 Download canary assets:
color
color_asdk_ios-swift--canary.626.5623261451.swift
color_asdk_kotlin--canary.626.5623261451.kt
color_asdk_react-native--canary.626.5623261451.ts
color_asdk_xml--canary.626.5623261451.xml
color_plasma_b2c_ios-swift--canary.626.5623261451.swift
color_plasma_b2c_kotlin--canary.626.5623261451.kt
color_plasma_b2c_react-native--canary.626.5623261451.ts
color_plasma_b2c_xml--canary.626.5623261451.xml
color_sberHealth_ios-swift--canary.626.5623261451.swift
color_sberHealth_kotlin--canary.626.5623261451.kt
color_sberHealth_react-native--canary.626.5623261451.ts
color_sberHealth_xml--canary.626.5623261451.xml
color_sbermarket_business_ios-swift--canary.626.5623261451.swift
color_sbermarket_business_kotlin--canary.626.5623261451.kt
color_sbermarket_business_react-native--canary.626.5623261451.ts
color_sbermarket_business_xml--canary.626.5623261451.xml
color_sbermarket_ios-swift--canary.626.5623261451.swift
color_sbermarket_kotlin--canary.626.5623261451.kt
color_sbermarket_metro_ios-swift--canary.626.5623261451.swift
color_sbermarket_metro_kotlin--canary.626.5623261451.kt
color_sbermarket_metro_react-native--canary.626.5623261451.ts
color_sbermarket_metro_xml--canary.626.5623261451.xml
color_sbermarket_react-native--canary.626.5623261451.ts
color_sbermarket_selgros_ios-swift--canary.626.5623261451.swift
color_sbermarket_selgros_kotlin--canary.626.5623261451.kt
color_sbermarket_selgros_react-native--canary.626.5623261451.ts
color_sbermarket_selgros_xml--canary.626.5623261451.xml
color_sbermarket_wlbusiness_ios-swift--canary.626.5623261451.swift
color_sbermarket_wlbusiness_kotlin--canary.626.5623261451.kt
color_sbermarket_wlbusiness_react-native--canary.626.5623261451.ts
color_sbermarket_wlbusiness_xml--canary.626.5623261451.xml
color_sbermarket_xml--canary.626.5623261451.xml
color_sberonline_ios-swift--canary.626.5623261451.swift
color_sberonline_kotlin--canary.626.5623261451.kt
color_sberonline_react-native--canary.626.5623261451.ts
color_sberonline_xml--canary.626.5623261451.xml
color_sberprime_ios-swift--canary.626.5623261451.swift
color_sberprime_kotlin--canary.626.5623261451.kt
color_sberprime_react-native--canary.626.5623261451.ts
color_sberprime_xml--canary.626.5623261451.xml
shadow
shadow_sbermarket_react-native--canary.626.5623261451.ts
typo
typo_mage_ios-swift--canary.626.5623261451.swift
typo_mage_kotlin--canary.626.5623261451.kt
typo_mage_react-native--canary.626.5623261451.ts
typo_plasma_ios-swift--canary.626.5623261451.swift
typo_plasma_kotlin--canary.626.5623261451.kt
typo_plasma_react-native--canary.626.5623261451.ts
typo_ruler_ios-swift--canary.626.5623261451.swift
typo_ruler_kotlin--canary.626.5623261451.kt
typo_ruler_react-native--canary.626.5623261451.ts
typo_sage_ios-swift--canary.626.5623261451.swift
typo_sage_kotlin--canary.626.5623261451.kt
typo_sage_react-native--canary.626.5623261451.ts
typo_sbermarket_ios-swift--canary.626.5623261451.swift
typo_sbermarket_kotlin--canary.626.5623261451.kt
typo_sbermarket_react-native--canary.626.5623261451.ts
typo_soulmate_ios-swift--canary.626.5623261451.swift
typo_soulmate_kotlin--canary.626.5623261451.kt
typo_soulmate_react-native--canary.626.5623261451.ts
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
npm install @salutejs/[email protected]
# or 
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]
yarn add @salutejs/[email protected]

@neretin-trike neretin-trike force-pushed the neretinaa/add-suport-multiple-color-gradient branch 2 times, most recently from 3e2d76c to 043bfca Compare July 20, 2023 10:43
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-626/

@neretin-trike neretin-trike force-pushed the neretinaa/add-suport-multiple-color-gradient branch from 043bfca to 3392e38 Compare July 20, 2023 12:51
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-626/

@neretin-trike neretin-trike force-pushed the neretinaa/add-suport-multiple-color-gradient branch from 3392e38 to a4e8113 Compare July 21, 2023 06:49
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-626/

@neretin-trike neretin-trike force-pushed the neretinaa/add-suport-multiple-color-gradient branch from a4e8113 to dba3d31 Compare July 21, 2023 09:21
@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-626/

@Salute-Eva
Copy link
Contributor

Theme Builder app deployed!

http://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-626/

@neretin-trike neretin-trike added this pull request to the merge queue Jul 25, 2023
Merged via the queue into dev with commit 15b5f6f Jul 25, 2023
@neretin-trike neretin-trike deleted the neretinaa/add-suport-multiple-color-gradient branch July 25, 2023 08:59
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

2 similar comments
@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

@Salute-Eva
Copy link
Contributor

🚀 This PR is included in version: @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected], @salutejs/[email protected] 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants