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: export sky palette in default colors (closes #425) #426

Merged
merged 4 commits into from
Sep 27, 2021

Conversation

high1
Copy link
Contributor

@high1 high1 commented Aug 18, 2021

  • removed lightBlue palette inside colors, since it was deprecated
    with sky
  • exported sky and light-blue as an alternative to it inside default
    colors

@high1 high1 changed the title Export sky palette in default colors Export sky palette in default colors (closes [#426](https://github.com/windicss/windicss/issues/425)) Aug 18, 2021
@high1 high1 changed the title Export sky palette in default colors (closes [#426](https://github.com/windicss/windicss/issues/425)) Export sky palette in default colors (closes #426) Aug 18, 2021
@high1 high1 changed the title Export sky palette in default colors (closes #426) Export sky palette in default colors (closes #425) Aug 18, 2021
- removed lightBlue palette inside colors, since it was deprecated
with sky
- exported sky and light-blue as an alternative to it inside default
colors
@alexanderniebuhr
Copy link
Member

/lgtm

- since light-blue was deprecated and is just an alternative for sky
now, use colors.sky in test configurations
- do not remove lightBlue completely from colors, since users should
still be able to import it directly from colors - instead, reexport sky
and show a deprecation warning
@high1
Copy link
Contributor Author

high1 commented Aug 24, 2021

@alexanderniebuhr The issue could arise if users import lightBlue directly from colors - and the test shows that. Added a deprecation warning and a reexport of the sky pallete for lightBlue.

@codecov-commenter
Copy link

Codecov Report

Merging #426 (88b7bee) into main (007767d) will decrease coverage by 0.63%.
The diff coverage is 37.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #426      +/-   ##
==========================================
- Coverage   88.20%   87.57%   -0.64%     
==========================================
  Files          56       57       +1     
  Lines        4783     4830      +47     
  Branches     1029     1036       +7     
==========================================
+ Hits         4219     4230      +11     
- Misses        301      337      +36     
  Partials      263      263              
Impacted Files Coverage Δ
src/config/base.ts 73.61% <ø> (ø)
src/config/colors.ts 50.00% <37.50%> (-50.00%) ⬇️
src/cli/utils.ts 22.50% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 007767d...88b7bee. Read the comment docs.

@high1
Copy link
Contributor Author

high1 commented Aug 27, 2021

@alexanderniebuhr @antfu Is there something wrong with the PR? I see that the coverage has decreased, but I'm not sure how to test code that logs to console, TBH.

@alexanderniebuhr
Copy link
Member

@high1 I think it is fine. Please wait patiently for the other maintainers to approve :)

@antfu antfu changed the title Export sky palette in default colors (closes #425) feat: export sky palette in default colors (closes #425) Sep 27, 2021
@antfu antfu merged commit a042e03 into windicss:main Sep 27, 2021
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

Successfully merging this pull request may close these issues.

None yet

4 participants