Implemented new css scheme

This commit is contained in:
2025-04-16 00:57:29 +02:00
parent 567622f523
commit 4ec3037474
4 changed files with 12 additions and 10 deletions

View File

@@ -0,0 +1 @@

View File

@@ -1,9 +1,9 @@
from ansible.plugins.lookup import LookupBase
from colorscheme_generator import generate_full_palette
class LookupModule(object):
class LookupModule(LookupBase):
def run(self, terms, variables=None, **kwargs):
base_color = terms[0]
count = kwargs.get('count', 100)
shades = kwargs.get('shades', True)
return [generate_full_palette(base_color, count=count, shades=shades)]
count = kwargs.get('count')
shades = kwargs.get('shades')
return [generate_full_palette(base_color, count=count, shades=shades)]