Giter Site home page Giter Site logo

font-style-changer's Introduction

Font Style Changer 🎹

A project from week 3 of the FAC 22 pre-apprenticeship.

💾 See full pre-apprenticeship repository here.

The Font Style Changer uses CSS variables and JS to modify the size, tracking and justification of the fonts.

Inspired by the tutorial from Wes Bos JS30 (Playing with CSS Variables)

📚 What I learnt

  • How to use CSS variables
  • How to change those variables using JS document.documentElement.style.setProperty('--property', 'value')
  • How to enable editing of text using contenteditable="true"
  • How to create a simple light/dark theme switcher
  • Toggle is much better than loads of if statments document.documentElement.classList.toggle('dark'); FTW!
  • How to retrieve input values from input type="range"
  • How to style sliders using CSS input[type="range"]

🦺 Testing

  • Works on latest version of Firefox, Chrome and Edge
  • Does not work on mobile
  • Further testing required

⏳ Future improvements

  • More colour options
  • Ability to change fonts
  • Justify SVG icons look odd
  • Mobile version

👀 Screenshots

Keyboard Glockenspiel

Keyboard Glockenspiel

Keyboard Glockenspiel

Keyboard Glockenspiel

font-style-changer's People

Contributors

cemalokten avatar

Stargazers

Roman avatar Anna Cunnane avatar Alex Lopez (he/him) avatar

Watchers

 avatar  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.