183 Commits

Author SHA1 Message Date
ConnorSkees
d14ac11396 Implement weight for invert() 2020-02-09 13:44:27 -05:00
ConnorSkees
1269c9f662 Initial implementation of invert() (no support for weight argument) 2020-02-09 13:31:58 -05:00
ConnorSkees
8638e2f251 Implement builtin functions hue(), saturation(), and lightness() 2020-02-09 12:18:41 -05:00
ConnorSkees
2b3d8fcce7 Implement addition between colors and idents 2020-02-09 10:49:37 -05:00
ConnorSkees
901c911b5b Handle percentages and large/small values inside rgb() and rgba() 2020-02-09 10:41:05 -05:00
ConnorSkees
f3e0638329 Allow hue to be in degrees 2020-02-09 03:21:15 -05:00
ConnorSkees
5cab99cd6e Implement hsl() and hsla() functions 2020-02-09 03:13:31 -05:00
ConnorSkees
86173a3ca7 Implement builtin functions quote and unquote 2020-02-08 21:19:54 -05:00
ConnorSkees
22670a7e4b Implement builtin function str-length 2020-02-08 20:38:37 -05:00
ConnorSkees
07845beee9 Implement to-upper-case() and to-lower-case() 2020-02-08 20:32:10 -05:00
ConnorSkees
c75e5cc553 Properly parse floating point numbers and rgba() 2020-02-08 20:07:20 -05:00
ConnorSkees
2a6ec38fd4 Special case builtin function opacity(number) 2020-02-08 18:55:48 -05:00
ConnorSkees
44d257494a Properly print decimal numbers 2020-02-08 18:43:18 -05:00
ConnorSkees
04d2c4ab74 Implement built in functions opacity and alpha 2020-02-08 17:49:23 -05:00
ConnorSkees
4585558266 Add (variable|function|mixin)-exists builtin functions 2020-02-08 17:41:54 -05:00
ConnorSkees
783e43b765 clippy 2020-02-08 17:03:43 -05:00
ConnorSkees
55ca402644 rustfmt 2020-02-08 16:08:54 -05:00
ConnorSkees
74a81060ba Remove Color tokenkind 2020-02-08 13:16:53 -05:00
ConnorSkees
08ca3f6d01 Initial implementation of rgb() function 2020-02-08 09:37:48 -05:00
ConnorSkees
76b2685894 Lex and parse named colors 2020-02-07 00:10:43 -05:00
ConnorSkees
ed44f125f7 Add builtin function inspect() 2020-02-03 15:18:12 -05:00
ConnorSkees
816688cb84 Implement unitless builtin function 2020-02-03 08:10:55 -05:00
ConnorSkees
901bdcae3b Implement type-of builtin function 2020-02-03 07:56:21 -05:00
ConnorSkees
c92781a20e Add unit function 2020-02-03 07:35:04 -05:00
ConnorSkees
e57a189c77 Handle quotes in feature-exists 2020-02-03 07:27:57 -05:00
ConnorSkees
f82f1f3eee Add feature-exists() builtin function 2020-02-03 07:22:20 -05:00
ConnorSkees
8eb9620a1a Refactor builtin function declaration 2020-02-03 07:11:35 -05:00
ConnorSkees
efc62a2433 Add if() function 2020-02-02 22:33:04 -05:00
ConnorSkees
c7f34f573f newlines in builtin files 2020-02-02 21:09:29 -05:00
ConnorSkees
1c4ad8a7fa Builtin function boilerplate 2020-02-02 18:05:36 -05:00
ConnorSkees
8b26fabb62 Work on builtin functions 2020-01-26 15:28:39 -05:00
ConnorSkees
4cbbff259c Implement basic builtin functions 2020-01-25 23:33:45 -05:00
ConnorSkees
5295d18f02 Create module for builtin functions 2020-01-25 20:58:30 -05:00