Coder Social home page Coder Social logo

pairen1383 / color_injector Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 511 KB

To change colors more easily and find good color combinations for web pages.

License: MIT License

Python 100.00%
color colors palette palette-colors palette-generation palette-generator color-injector color-generator css html python-tool

color_injector's Introduction

Color_Injector

To change colors more easily and find good color combinations for web pages.

image from Color_Injector user interface

Help Content:

Why was this tool created?

To change colors more easily and find good color combinations for web pages. Don't worry about mistakes in inputs, all inputs will be checked.

How can I use it?

  • Step 1: Open the program.
  • Step 2: Enter '1'.
  • Step 3: Enter '1' if you have a live server (it is a 'VS Code' extension) or enter '2' if you are running the application from terminal.
  • Step 4: Enter path of CSS file for color injection.
  • Step 5: Enter path of HTML file for color injection.
  • Step 6: Enter an appropriate name (without these characters: /:*?"<>|) for the new backup file. You don't need to end the name with '.css'.
  • Step 7: Enter mode. If you want to change colors every 10 seconds, enter 't2' (t1=5s, t2=10s, t3=15s, tn=n*5s). If you want to change colors with pressing 'Enter', enter 'p'.
  • Step 8: If everything is correct, enter 'y'.
  • Step 9: Select lines for color injection like '8, 12, 21',
    • or enter 'all' to select all lines,
    • or enter 'abc' to select all background-colors,
    • or enter 'ac' to select all colors.
  • Step 10: If you are entering live server mode, open the HTML file in Live Server.
  • Step 11: After selecting color, if you enter 'p' mode, enter 'e' or 'q' to stop injection, or if you enter 't' mode, press 'Ctrl + Alt + Z' to stop injection.
  • Step 12: Enter 'q' or 'e' or '2' to exit the program.

Where is the log file?

It will be saved in the CSS file directory.

What information will be in the log file?

Here is the test log:

**** Color Injector launched. **********
[31-07-2023 17:22:21] Path of CSS file: F:\python projects\Mini-Project-Menu1\Menu1\Menu1.css
[31-07-2023 17:22:29] Backup name: 'mytest.css'
[31-07-2023 17:22:39] A backup of the CSS file has been created. Path: F:\python projects\Mini-Project-Menu1\Menu1\mytest.css
[31-07-2023 17:22:47] Selected lines: [16, 26, 71, 81]
[31-07-2023 17:22:47] |N1| List of colors: ['6e602c', 'ae8096', '018e9d', '3083cd']
[31-07-2023 17:22:50] |N2| List of colors: ['e449bd', '774f10', 'cd0c90', '4c109b']
[31-07-2023 17:22:50] |N3| List of colors: ['cf72d7', 'e61b57', 'fd88d6', 'b6170e']
[31-07-2023 17:22:51] |N4| List of colors: ['c36e48', '31cb16', 'fd5799', '411e25']
[31-07-2023 17:22:51] |N5| List of colors: ['b9fd74', 'deb908', 'b567ea', '6b45e4']

HINT

After using the program, clear the log file.

Don't forget to give a star. ;)

color_injector's People

Contributors

pairen1383 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.