Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

[FEAT] create Obvious (custom CSS preprocessor) #25

Closed
SRNV opened this issue Aug 3, 2020 · 3 comments · Fixed by #27
Closed

[FEAT] create Obvious (custom CSS preprocessor) #25

SRNV opened this issue Aug 3, 2020 · 3 comments · Fixed by #27
Assignees
Labels
enhancement New feature or request
Projects

Comments

@SRNV
Copy link
Owner

SRNV commented Aug 3, 2020

mostly inspired by Sass and Less.
the plan is to make it the default parser

can use components datas

<proto>
  declare:
    public readonly color = 'red';
</proto>
<style>
.container {
  .text {
    color: ${color}
  }
}
</style>
@SRNV SRNV added the enhancement New feature or request label Aug 10, 2020
@SRNV SRNV mentioned this issue Aug 16, 2020
@SRNV
Copy link
Owner Author

SRNV commented Aug 17, 2020

key features

  • import component's rules and vars @use 'component-tagname' as Component;
  • export rules, vars @export const var = red;
  • rules type checking @type container = { color: red; }
  • vars @const t = value;
  • nested rules
  • save rules inside vars @const t = div { /* ... */}
  • eval with typescript to get value @const* var = true;
  • spread rules @const rule = div {...}; div { ...rule; }
  • supports for all @ native css rules
    • keyframes
    • media queries
    • font-face
    • document
    • charset
    • import
    • namespace
    • supports
    • counter-style
    • etc ...

@SRNV SRNV linked a pull request Aug 18, 2020 that will close this issue
@SRNV SRNV added this to In progress in Ogone 1.0.0 Aug 18, 2020
@SRNV SRNV self-assigned this Aug 18, 2020
@SRNV SRNV pinned this issue Aug 18, 2020
@SRNV
Copy link
Owner Author

SRNV commented Aug 19, 2020

Screenshot from 2020-08-19 18-15-45
// style.o3
Screenshot from 2020-08-19 18-15-37

@SRNV
Copy link
Owner Author

SRNV commented Aug 21, 2020

media queries are now supported
Screenshot from 2020-08-21 16-18-05

still work to do on keyframes
some ideas here
Screenshot from 2020-08-21 16-15-49

@SRNV SRNV closed this as completed in #27 Aug 26, 2020
@SRNV SRNV unpinned this issue Aug 26, 2020
@SRNV SRNV moved this from In progress to Done in Ogone 1.0.0 Aug 27, 2020
@SRNV SRNV moved this from Done to Released in Ogone 1.0.0 Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Ogone 1.0.0
  
Released
Development

Successfully merging a pull request may close this issue.

1 participant