Adding colors to your project for later use

<resources>

<color name="colorPrimary">#10141C</color>

<color name="colorPrimaryDark">#171C26</color>

<color name="colorAccent">#4e33ff</color>

</resources>

"Code, Split, Design" click on Split 

<?xml version="1.0" encoding="utf-8"?>

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"

   xmlns:app="http://schemas.android.com/apk/res-auto"

   xmlns:tools="http://schemas.android.com/tools"

   android:layout_width="match_parent"

   android:layout_height="match_parent"

   tools:context=".FirstFragment"

   android:background="@color/colorPrimaryDark">

You can use these for any code block background or TextColor: