Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ap/vim-css-color
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: mcmire/vim-css-color
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 21, 2020

  1. Highlight hsluv() functions

    [HSLuv][1] is a color space that is like HSL, but adjusts the lightness
    component so that each color within the H-S plane is perceptually
    uniform for each value of L.
    
    `hsluv()` is not a valid function in CSS, but there is a new spec ([CSS
    Color 4][2]) that introduces `lab()` and `lch()`, so `hsluv()` is an
    extension to that idea.
    
    In order to highlight `hsluv()` functions as colors in Vim:
    
    * You will need to configure Sass to recognize `hsluv()` as a function.
      You can make use of my [`sass-hsluv`][3] library to do this. (There
      are instructions in the README for how to configure Webpack and other
      bundlers.)
    * You will need to install two Vim plugins of mine: [`vim-hsluv`][4] and
      [`vim-css-hsluv`][5] (the latter adds `hsluv()` to a syntax
      highlighting group; the former has HSLuv color conversion functions).
    
    [1]: https://www.hsluv.org/
    [2]: https://www.w3.org/TR/css-color-4/#specifying-lab-lch
    [3]: https://git.sr.ht/~mcmire/sass-hsluv
    [4]: https://git.sr.ht/~mcmire/vim-hsluv
    [5]: https://git.sr.ht/~mcmire/vim-css-hsluv
    mcmire committed Mar 21, 2020
    Configuration menu
    Copy the full SHA
    cb8d9bd View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Configuration menu
    Copy the full SHA
    d2efbbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf94b83 View commit details
    Browse the repository at this point in the history
  3. Introduce syntax highlighting for hsluv() functions

    Originally I was going to introduce this as a separate plugin, but it
    belongs here.
    mcmire committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    533e816 View commit details
    Browse the repository at this point in the history
Loading