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

✨ Automatic Merging & Re-arranging of Custom Class Names with Grouped Styles #258

Open
HealMah opened this issue Jul 7, 2023 · 2 comments
Milestone

Comments

@HealMah
Copy link

HealMah commented Jul 7, 2023

Description

According to the Docs,

  Style.extend('classes', {
      btn: 'font:14 h:40 h:32.sm text:center bg:red:hover',
      card: 'p:20 b:1|solid|gray-80 bg:white'
  });

is possible, which is great;

but this will break if it's grouped and further filter(s) is/are added, e.g:

Style.extend('classes', {
    btn: '{font:14;h:40;h:32.sm;text:center;bg:red:hover}@light {some;other;styles}@dark',
});

IT WILL BE A POWERFULL FEATURE, if will there can be some ways to unwind and merge the above with html template styles!
For example,

<div class="btn>button"></div>

OR

<button class="btn:first-child"></button>

etc.

The system will just have to LOGICALLY, break, re-arrange and re-group the style in their respective orders.
Thnaks

@1aron 1aron changed the title Automatic Merging & Re-arranging of Custom Class Names with Grouped Styles✨ ✨ Automatic Merging & Re-arranging of Custom Class Names with Grouped Styles Jul 7, 2023
@1aron
Copy link
Member

1aron commented Jul 14, 2023

@HealMah We've conceived the same proposal as you in the past; it's quite possible that you'll see it in some version of Master CSS 2.X. Good job!

@HealMah
Copy link
Author

HealMah commented Jul 18, 2023

@HealMah We've conceived the same proposal as you in the past; it's quite possible that you'll see it in some version of Master CSS 2.X. Good job!

Wow, good to hear and that will be really appreciated. Hats off to the team!

@1aron 1aron added feature New feature css labels Sep 26, 2023
@1aron 1aron added this to the 2.X milestone Sep 26, 2023
@1aron 1aron removed the css label Jan 22, 2024
@1aron 1aron removed the feature New feature label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants