Skip to content

Commit

Permalink
Hue SCSS Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 4, 2024
1 parent 846b524 commit 90e675c
Show file tree
Hide file tree
Showing 12 changed files with 2,409 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/jinja/hue.gl-hcl-map.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

$hue: (
{% for group_name, group in colors %}


// {{ group_name }}
// ------------------------------------------------------------------------

{% for color_name, color in group %}
{{ color_name }}: hcl({{ color.hcl().h }}, {{ color.hcl().c }}, {{ color.hcl().l }}),
{% endfor -%}



{% endfor %}

)
34 changes: 34 additions & 0 deletions src/jinja/hue.gl-hcl-var.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

{% for group_name, group in colors -%}
// {{ group_name }}
// ----------------------------------------------------------------------------

{% for color_name, color in group -%}
${{ color_name }}: {{ color.srgb().toString({precision: 4, format: "rgb"}) }};
{% endfor %}

{% endfor %}
41 changes: 41 additions & 0 deletions src/jinja/hue.gl-hex-map.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

$hue: (
{% for group_name, group in colors %}


// {{ group_name }}
// ------------------------------------------------------------------------

{% for color_name, color in group %}
{{ color_name }}: {{ color.hex() }},
{% endfor -%}



{% endfor %}

)
34 changes: 34 additions & 0 deletions src/jinja/hue.gl-hex-var.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

{% for group_name, group in colors -%}
// {{ group_name }}
// ----------------------------------------------------------------------------

{% for color_name, color in group -%}
${{ color_name }}: {{ color.hex() }};
{% endfor %}

{% endfor %}
41 changes: 41 additions & 0 deletions src/jinja/hue.gl-rgb-map.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

$hue: (
{% for group_name, group in colors %}


// {{ group_name }}
// ------------------------------------------------------------------------

{% for color_name, color in group %}
{{ color_name }}: {{ color.srgb().toString({precision: 4, format: "rgb"}) }},
{% endfor -%}



{% endfor %}

)
34 changes: 34 additions & 0 deletions src/jinja/hue.gl-rgb-var.scss.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2023 Scape Agency BV

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// ============================================================================
//
// {{ name }}
// {{ version }}
//
// ============================================================================


// General
// ============================================================================

{% for group_name, group in colors -%}
// {{ group_name }}
// ----------------------------------------------------------------------------

{% for color_name, color in group -%}
${{ color_name }}: {{ color.srgb().toString({precision: 4, format: "rgb"}) }};
{% endfor %}

{% endfor %}
Loading

0 comments on commit 90e675c

Please sign in to comment.