Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Repository files navigation

cxbutton

Maven Central Maven Central (snapshot) Codecov Java Version

com.io7m.cxbutton

JVM Platform Status
OpenJDK (Temurin) Current Linux Build (OpenJDK (Temurin) Current, Linux)
OpenJDK (Temurin) LTS Linux Build (OpenJDK (Temurin) LTS, Linux)
OpenJDK (Temurin) Current Windows Build (OpenJDK (Temurin) Current, Windows)
OpenJDK (Temurin) LTS Windows Build (OpenJDK (Temurin) LTS, Windows)

Repository Relocation

Development of this project has moved to an open-source but not open-contribution model.

Source code and commits will remain publicly available perpetually, but issues and/or pull requests will be rejected and/or ignored. Additionally, this project will now only be available via a read-only mirror at:

https://codeberg.org/io7m-com/cxbutton

cxbutton

Embossed CSS buttons.

Features

  • Templated, customizable CSS buttons.
  • OSGi ready.
  • JPMS ready.
  • ISC license.
  • High-coverage automated test suite.

Usage

Use the CxButtonCSS class to generate CSS text.

final CxButtonCSS css =
  CxButtonCSS.create();

final String text =
  css.cssOf(Optional.empty(), false, CxButtonCSS.defaultColors());

It's possible to specify custom colors, and the package can automatically derive the correct color variations for embossing:

final String text =
  css.cssOf(
    Optional.of("Ocean"),
    true,
    CxButtonCSS.colorsForScheme(
      new CxColor(1.0, 1.0, 1.0),
      new CxColor(0.0, 0.0, 0.0),
      new CxColor(0.105, 0.313, 0.454),
      0.2,
      0.2,
      0.5
    )
  );

About

Embossed CSS buttons

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages